mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Updating Validation method extraction.
This commit is contained in:
parent
651a3f16b2
commit
1110f3e1c2
1 changed files with 1 additions and 2 deletions
|
@ -350,8 +350,7 @@ class ModelTask extends Shell {
|
|||
function initValidations() {
|
||||
$options = $choices = array();
|
||||
if (class_exists('Validation')) {
|
||||
$parent = get_class_methods(get_parent_class('Validation'));
|
||||
$options = array_diff(get_class_methods('Validation'), $parent);
|
||||
$options = get_class_methods('Validation');
|
||||
}
|
||||
sort($options);
|
||||
$default = 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue