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
We can help developers and signal: if you return array<string, …> you are mostlikely running into this error when your array is empty. The fixed return should be array<string, …>|\stdClass like in the Talk PR.
The text was updated successfully, but these errors were encountered:
In the error message we shouldn't only tell the developer what they need to change but also why. Psalm will start complaining but they might not understand why without any further information.
If APIs return
array<string, …>
it is very likely that they are misbehaving on JSON.Ref nextcloud/spreed#10832
problem is that arrays are used for dictionaries and lists
Sample
Result
Idea
We can help developers and signal: if you return
array<string, …>
you are mostlikely running into this error when your array is empty. The fixed return should bearray<string, …>|\stdClass
like in the Talk PR.The text was updated successfully, but these errors were encountered: