Moving the editor hint right above the assignment works.
Having the editor hint above 2 or more lines doesn't work.
I will create a small patch.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

BetoAveiga created an issue. See original summary.

betoaveiga’s picture

Patch against 2.0.0-rc1.

eli-t’s picture

Version: 2.0.0-rc1 » 2.0.x-dev

eli-t’s picture

Status: Active » Needs review

My IDE (PHPStorm 2022.3.2) has no problem understanding the hint when it's not on the line immediately preceding the variable definition, but I guess it's more readable when it's moved to be next to it as proposed in this issue.

eli-t’s picture

Status: Needs review » Fixed

  • Eli-T committed 2bc1b96f on 2.0.x
    Issue #3219411 by Eli-T, BetoAveiga: move @var hint next to variable. 
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.