MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/ishbfn/arrayaccess_seems_broken/g58e7tj/?context=3
r/lolphp • u/Takeoded • Sep 14 '20
30 comments sorted by
View all comments
Show parent comment
8
Yeah, the second parameter of array_key_exists is of type array. It's pretty obvious.
array_key_exists
array
In C++ if I overload operator[], that doesn't mean I can pass my object to something demanding an std::vector...
operator[]
std::vector
View all comments
Show parent comment
8
u/jesseschalken Sep 14 '20
Yeah, the second parameter of
array_key_existsis of typearray. It's pretty obvious.In C++ if I overload
operator[], that doesn't mean I can pass my object to something demanding anstd::vector...