mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Dont include deprecated options for bake
This commit is contained in:
parent
4f3602ad5f
commit
f742fa51fe
1 changed files with 2 additions and 0 deletions
|
@ -383,6 +383,8 @@ class ModelTask extends BakeTask {
|
|||
if (class_exists('Validation')) {
|
||||
$options = get_class_methods('Validation');
|
||||
}
|
||||
$deprecatedOptions = array('notEmpty');
|
||||
$options = array_diff($options, $deprecatedOptions);
|
||||
sort($options);
|
||||
$default = 1;
|
||||
foreach ($options as $option) {
|
||||
|
|
Loading…
Reference in a new issue