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
With current annotations in AbstractEnumType, Psalm throw an error
ERROR: NonInvariantDocblockPropertyType - [...] - Property A::$choices has type array<array-key, mixed>, not invariant with Fresh\DoctrineEnumBundle\DBAL\Types\AbstractEnumType::$choices of type array<Fresh\DoctrineEnumBundle\DBAL\Types\TValue, Fresh\DoctrineEnumBundle\DBAL\Types\TReadable>
@ddebin Sorry, but this bundle doesn't use Psalm, it uses phpstan. I won't support both static analyzers. If you can create non-conflicted fix, I would consider it.
Psalm made a design choice that class-level templates and static properties/method should not mix.
vimeo/psalm#7507
https://psalm.dev/r/f5f3b15557
With current annotations in
AbstractEnumType
, Psalm throw an errorWith code
The text was updated successfully, but these errors were encountered: