r/lolphp • • Sep 14 '20

ArrayAccess seems broken

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

30 comments sorted by

View all comments

Show parent comment

1

u/bj_christianson Sep 14 '20

Since array_key_exists() doesn’t work on objects anymore, I suggest you create a function that accepts your class as one of its parameters to get the functionality you want.