@var stopped working in 2020.1 RC
Before when using @var it would affect the whole file. Now code completion and check does only work when using near or in the next line.
In the top marked area the code completion works fine, below not anymore. Is this a known bug?

Please sign in to leave a comment.
Hi there,
Most likely irrelevant .. but the correct syntax would be (using FQN here)
Now ... if you place the caret on $model where it does not work and invoke "View | Quick Documentation" (Ctrl+Q here on Windows) -- what type will it show? Does it show the wrong type (different to what it shows on the place where it works OK)?
Do you have the same $model defined in some another file but different class is used?
If you rename (by simple find & replace in this file) $model to some another but unique name (e.g. $model123) in this file only -- will it work correctly? This is just to check the possible reasons/behaviour...
Yes, when I view the quick documentation is lists a lot of other models.
Yes, when I rename the $model to $model123 it works fine.
So it seems PHPStorm is now using @var cross files and is not limited to the file or declaration block.
Looks similar: https://youtrack.jetbrains.com/issue/WI-52968