Skip to content

Conversation

@sel-1
Copy link

@sel-1 sel-1 commented Apr 17, 2025

The change is needed because the validation of the if-s are based on integer values and not string. As $input['field']['error'] is passed as string, all the if are failing.

The change is needed because the validation of the if-s are based on integer values and not string.  As $input['field']['error'] is passed as string, all the if are failing.
@sel-1
Copy link
Author

sel-1 commented Apr 17, 2025

'is_string($input[$field]['error'])' is better than 'gettype($input[$field]['error']) == 'string''

@filisko
Copy link
Contributor

filisko commented Apr 20, 2025

@sel-1 add the unit test then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants