mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-21 08:59:57 +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() {
|
function initValidations() {
|
||||||
$options = $choices = array();
|
$options = $choices = array();
|
||||||
if (class_exists('Validation')) {
|
if (class_exists('Validation')) {
|
||||||
$parent = get_class_methods(get_parent_class('Validation'));
|
$options = get_class_methods('Validation');
|
||||||
$options = array_diff(get_class_methods('Validation'), $parent);
|
|
||||||
}
|
}
|
||||||
sort($options);
|
sort($options);
|
||||||
$default = 1;
|
$default = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue