Argument Types for Validation Rules |
I created the following validation rule:
Code: public function not_blocked(int $mebn_seq): bool It errored because $mebn_seq is declat=red as int. I had to declare it as string and cast the argument to isBlocked: Code: public function not_blocked(string $mebn_seq): bool I do not believe I should have to do this. I created an issue in GitHub.
Simpler is always better
What error do you see?
Error message, stack trace?
The data of the incoming request is by default a string.
This is not a framework or php problem. This is a problem with the HTTP protocol.
|
Welcome Guest, Not a member yet? Register Sign In |