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
The declared return type 'array{key1:int, key2:int}' for foo is more specific than the inferred return type 'array<int, int>'
As stated in array_map doc:
The returned array will preserve the keys of the array argument if and only if exactly one array is passed. If more than one array is passed, the returned array will have sequential integer keys.
The text was updated successfully, but these errors were encountered:
Test case:
Expected: no errors
Actual:
As stated in
array_map
doc:The text was updated successfully, but these errors were encountered: