Replies: 1 comment
-
collect(['a' => []])->flip(); would be creating an array like: $myArray = [
[] => 'a'
]; But this returns a TypeError as arrays only accept strings & ints as their keys (to my knowledge). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
10.11.0
PHP Version
8.2.4
Database Driver & Version
No response
Description
Collection throws error: "Can only flip string and integer values, entry skipped":
Steps To Reproduce
Sorting data...
Beta Was this translation helpful? Give feedback.
All reactions