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
In the context of #2984, I noticed that a different value for Generators third type parameter (TSend) does not seem to support a value other than the default (mixed): https://psalm.dev/r/b6bedecbb9
It causes the following error:
INFO: MixedReturnTypeCoercion - 5:12 - The declared return type 'Generator<int, int, int, void>' for generate is more specific than the inferred return type 'Generator<int, int, mixed, void>'
Psalm output (using commit 474b9dc):
INFO: MixedReturnTypeCoercion - 5:12 - The declared return type 'Generator<int, int, int, void>' for generate is more specific than the inferred return type 'Generator<int, int, mixed, void>'
In the context of #2984, I noticed that a different value for
Generator
s third type parameter (TSend
) does not seem to support a value other than the default (mixed
):https://psalm.dev/r/b6bedecbb9
It causes the following error:
@andrew-demb pointed out the relevant stub code:
psalm/src/Psalm/Internal/Stubs/CoreGenericClasses.phpstub
Lines 190 to 198 in 474b9dc
The text was updated successfully, but these errors were encountered: