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
The whole validation thing in Cake is quite buggy, as pointed out earlier ( #12697 ).
It doesn't help that the argument count can vary, and context can be at any position of validation rules, depending on what other arguments are available.
As soon as the validation provider is configured in any way, even core rules fail with the above.
The main reason seems to be that in this case, the 3rd arg is set with this array instead as $context instead of the expected $regex:
Description
It should be possible to use a different (extended) Validation class for all validators
https://book.cakephp.org/5/en/core-libraries/validation.html#adding-validation-providers
As per book in bootstrap:
leads to
But it is just
CakePHP Version
5.0
PHP Version
8.2
The text was updated successfully, but these errors were encountered: