mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing method_exists use in Validation for php4 compatibility.
This commit is contained in:
parent
276d183bdd
commit
b97ac84a34
1 changed files with 1 additions and 1 deletions
|
@ -927,7 +927,7 @@ class Validation extends Object {
|
|||
trigger_error(sprintf(__('Could not find %s class, unable to complete validation.', true), $className), E_USER_WARNING);
|
||||
return false;
|
||||
}
|
||||
if (!method_exists($className, $method)) {
|
||||
if (!is_callable(array($className, $method))) {
|
||||
trigger_error(sprintf(__('Method %s does not exist on %s unable to complete validation.', true), $method, $className), E_USER_WARNING);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue