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
Internal Psalm error on line 101 - /vendor/vimeo/psalm/src/Psalm/Internal/Provider/ReturnTypeProvider/ArrayMapReturnTypeProvider.php: Psalm\Internal\Provider\ReturnTypeProvider\ArrayMapReturnTypeProvider::Psalm\Internal\Provider\ReturnTypeProvider\{closure}(): Argument #1 ($sub) must be of type array, Psalm\Type\Union given
array_map(null, []); runs without exception.
The text was updated successfully, but these errors were encountered:
frontenac
changed the title
uncaught TypeError when calling array_map will null callback and non-empty array
uncaught TypeError when calling array_map with null callback and non-empty array
Dec 1, 2022
The following works in 4.30 but throws a TypeError in 5.0
array_map(null, [1]);
https://psalm.dev/r/fd479a295e
array_map(null, []);
runs without exception.The text was updated successfully, but these errors were encountered: