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
Parameter #1 $offset (key-of<TArray of array>) of method Options::offsetExists() should be contravariant with parameter $offset (key-of<array>) of method ArrayAccess<key-of<TArray of array>,value-of<TArray of array>>::offsetExists()
It looks like the generic-ness gets lost ($offset (key-of<array>)).
I don't think the example should report these messages. Could you please look into it?
@rvanvelzen okay interesting thought then it would also report allow_delete but seems like it doesn't. Do you know if there exist any issue about that?
Bug report
https://phpstan.org/r/2fb146c6-12dc-4a17-bb28-e13d93e820ea
/cc @rvanvelzen From the error messages:
It looks like the generic-ness gets lost (
$offset (key-of<array>)
).I don't think the example should report these messages. Could you please look into it?
This PR depends on the code to pass :) phpstan/phpstan-symfony#294
Thanks.
The text was updated successfully, but these errors were encountered: