You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When caging my own array and then checking an element of that array I get different result depending on whether I am using the version of Inspekt downloaded from github as opposed to the version from composer.
Yeah, that is a change in the newest versions (0.6.x). I made a change yesterday in the testXXX() methods, where they will return false if the key does not exist. The change is only in the master branch right now. See 6f91ee0 and f953fb9. With these changes, if you use $params_cage->testInt(), I you will get the behavior you expect.
Let me know if that works for you. If so I'll tag a 0.6.1 release.
When caging my own array and then checking an element of that array I get different result depending on whether I am using the version of Inspekt downloaded from github as opposed to the version from composer.
For example this works without errors:
However, if I run the following:
Gives the following error:
Given that you cannot check for null on a caged array (I don't think) this latter functionality makes caging of your arrays less useful.
The text was updated successfully, but these errors were encountered: