We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have arrays of items, whose structure is declared, and I reference to that structure in the arrays' declaration.
If the array has implicit or numeric keys, suggestion works fine.
But if the array has string keys, suggestion doesn't work.
<?php class Test { /** @var = [ * 'one' => '', * 'two' => '', * ] */ public $x; } /** @var $a = [ Test::$x ] */ $a = [ [ '' // suggests 'one', 'two' as expected ] ]; /** @var $b = [ Test::$x ] */ $b = [ 'key' => [ '' // doesn't suggest anything :( ] ];
Is there a way to make such reference work in an associative array?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have arrays of items, whose structure is declared, and I reference to that structure in the arrays' declaration.
If the array has implicit or numeric keys, suggestion works fine.
But if the array has string keys, suggestion doesn't work.
Is there a way to make such reference work in an associative array?
The text was updated successfully, but these errors were encountered: