- 
 
- 
  Notifications
 You must be signed in to change notification settings 
- Fork 933
Potential Bug with array_map #13155
 
 
 
 
 Answered
 
 by
 ondrejmirtes
 
 
 
 
 
 liamduckett
 
 
 
 asked this question in
 Support
 
 
 
 Potential Bug with array_map
 
 #13155
 
 -
Hey, hope you are well.
I was surprised to find that the line 40 dump is array<mixed> instead of array{19|21, 19|21} (like it's line 32 dump counterpart).
I was going to report this as a bug, but I wasn't quite confident enough 😅 (and as such, a discussion felt more relevant?).
The equivalent appears to work when using objects instead of arrays, is this expected?
Incase it is relevant, my usecase doesn't actually concern the specifics of the 19|21 - just int would do.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions
 
 
 Answered by
 
 ondrejmirtes
 
 
 
 Jun 18, 2025 
 
 
 Yeah, this is a bug, please open a bug report 😊
Replies: 1 comment
-
Yeah, this is a bug, please open a bug report 😊
Beta Was this translation helpful? Give feedback.
All reactions
- 
 👍 1
 
 0 replies
 
 
 
 Answer selected by
 liamduckett
 
 Sign up for free
 to join this conversation on GitHub.
 Already have an account?
 Sign in to comment