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
Psalm output (using commit 257a1ca):
ERROR: DocblockTypeContradiction - 16:9 - Docblock-defined type TIterable:fn-tolist as iterable<mixed, TValue:fn-tolist as mixed> for $iterable is never array
INFO: MixedArgument - 17:29 - Argument 1 of array_values cannot be mixed, expecting array<array-key, mixed>
INFO: MixedReturnTypeCoercion - 17:16 - The type 'array<array-key, mixed>' is more general than the declared return type '(list<TValue:fn-tolist as mixed>)|null' for toList
INFO: MixedReturnTypeCoercion - 20:12 - The type 'array<array-key, mixed>' is more general than the declared return type '(list<TValue:fn-tolist as mixed>)|null' for toList
INFO: MixedReturnTypeCoercion - 8:12 - The declared return type '(list<TValue:fn-tolist as mixed>)|null' for toList is more specific than the inferred return type 'array<array-key, mixed>|null'
vudaltsov
changed the title
Function with conditional types stopped working
Function with conditional types gives errors since 4.5.0
Feb 11, 2021
https://psalm.dev/r/9449b708b5
This function didn't throw any errors before 4.5.0
The text was updated successfully, but these errors were encountered: