JetBrains / JetBrains/phpstorm-workshop

02_Editing lesson 1.3: Adding `/** @var $people Person[] */` does not make a difference

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
294
Forks
69
PR merge metrics
No merged PRs in 30d

Description

Adding `/** @var $people Person[] */` does not seem to make a difference when I type `$person->`.
What I see in both cases (with and without the 'comment'):
I have to type `>` as well, while in previous cases this was automatically added.
Then I see a popup dialog with `getAge`, `getName`, `setAge`, `setName`.
So, in both cases I see completion (at least in the way I understand it).

F1 also works in both cases.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.