Validate is changing the integer keys of my post data |
I don't really know how to explain this well, but basically:
Original post data:
PHP Code: [ After validating (retrieved using validator->getValidated())
PHP Code: [ As you can see, string keys are fine even after validation, but integer keys gets changed.
Why does it do this, and how do I preserve my original keys? (Right now, I'm just adding a prefix "_" to every keys, but I wonder if there's a better way) (01-22-2024, 10:08 PM)kenjis Wrote: This bug? Oh wow, that's exactly it. So it was a bug after all. I tried using the command "composer update", but it didn't do anything, so I assume I'm going to have to change it myself and wait for an update. Thanks for the help though!
Yes, the bug fix will be included in v4.4.5.
|
Welcome Guest, Not a member yet? Register Sign In |