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
@@ @@-15: Parameter #1 $attributes of method HelloWorld::update_attributes() expects array&nonEmpty, array<string, string> given.
27: Method HelloWorld::update_attributes() has parameter $attributes with no value type specified in iterable type array.
Full report
Line
Error
27
Method HelloWorld::update_attributes() has parameter $attributes with no value type specified in iterable type array.
Bug report
I am wondering whether its a bug, that a array like
array<string, string>
violates anon-empty-array
typeCode snippet that reproduces the problem
https://phpstan.org/r/cbd1dc4a-8ace-4c0e-98fe-aea5561b9e63
-> expected no error
when using
non-empty-array<string, mixed>
it works without errors, like expectedsee https://phpstan.org/r/e419f103-0573-44b7-964a-4a89a833b911
The text was updated successfully, but these errors were encountered: