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 321b81e):
ERROR: InvalidReturnStatement - 4:12 - The inferred type 'array<int, string>|string' does not match the declared return type 'string' for test
ERROR: InvalidReturnType - 3:29 - The declared return type 'string' for test is incorrect, got 'array<int, string>|string'
ERROR: InvalidReturnStatement - 12:12 - The inferred type 'array<int, string>|string' does not match the declared return type 'array<int, string>' for test2
ERROR: InvalidReturnType - 9:12 - The declared return type 'array<int, string>' for test2 is incorrect, got 'array<int, string>|string'
ERROR: InvalidArgument - 17:7 - Argument 1 of test2 expects array<int, string>, string(Hello) provided
See https://psalm.dev/r/bb126f54c3
The return type of
mb_convert_encoding(string|string[] $input, string $to, string|string[] $from): string | string[]
depends on its input.if the input is a string, its return values should be a string and same for string[]
The text was updated successfully, but these errors were encountered: