You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PHPDoc tag of foo[] should equal array<int, foo> and not array<foo>
1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------------------------------------------
Line baz.php
------ ----------------------------------------------------------------------------------------------------------
10 PHPDoc tag @param for parameter $foos with type array<foo> is not subtype of native type array<int, foo>
------ ----------------------------------------------------------------------------------------------------------
[ERROR] Found 1 error
Interesting so its more or less a problem of the IDE (PHPStorm), that doesn't handle variable parameter counts. A bit of a bummer, cause there is no declaration i can use to satisfy PHPStorm and phpstan at the moment.
The PHPDoc tag of foo[] should equal
array<int, foo>
and notarray<foo>
1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% ------ ---------------------------------------------------------------------------------------------------------- Line baz.php ------ ---------------------------------------------------------------------------------------------------------- 10 PHPDoc tag @param for parameter $foos with type array<foo> is not subtype of native type array<int, foo> ------ ---------------------------------------------------------------------------------------------------------- [ERROR] Found 1 error
foo.php
baz.php
The text was updated successfully, but these errors were encountered: