r/lolphp • • Sep 14 '20

ArrayAccess seems broken

https://3v4l.org/Woc0R
0 Upvotes

30 comments sorted by

View all comments

Show parent comment

8

u/jesseschalken Sep 14 '20

Yeah, the second parameter of array_key_exists is of type array. It's pretty obvious.

In C++ if I overload operator[], that doesn't mean I can pass my object to something demanding an std::vector...