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
ERROR: MixedReturnTypeCoercion - The declared return type 'array<int, Foo>' for Entity::getFoo is more specific than the inferred return type 'array<array-key, mixed>' (see https://psalm.dev/197)
* @return array<int, Foo>
ERROR: MixedReturnTypeCoercion - The type 'array<array-key, mixed>' is more general than the declared return type 'array<int, Foo>' for Entity::getFoo (see https://psalm.dev/197)
return $this->foo;
The text was updated successfully, but these errors were encountered:
doctrine/orm
2.12.0 supports arrays of enums, see doctrine/orm#9497This is the syntax:
With the setter/getter set up like this:
... psalm is reporting:
The text was updated successfully, but these errors were encountered: