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
Describe the bug
When calling CodeIgniter\Model::getValidationRules() (as described here) we get a TypeError or a error from array_diff_key or array_intersect_key in case were using options.
This is caused by ::getValidationRules not checking for string / lookup like it happens in ::validate().
Always using ::getValidationRules instead of internal accessing them in ::validate() would be better and minimize the possibility of not checking for is_string :)
CodeIgniter 4 version development
Affected module(s) Codeigniter\Model
The text was updated successfully, but these errors were encountered:
element-code
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
May 27, 2020
Describe the bug
When calling
CodeIgniter\Model::getValidationRules()
(as described here) we get aTypeError
or a error fromarray_diff_key
orarray_intersect_key
in case were using options.This is caused by
::getValidationRules
not checking for string / lookup like it happens in::validate()
.Always using
::getValidationRules
instead of internal accessing them in::validate()
would be better and minimize the possibility of not checking foris_string
:)CodeIgniter 4 version
development
Affected module(s)
Codeigniter\Model
The text was updated successfully, but these errors were encountered: