Skip to content

Commit 89c9b90

Browse files
ArshidLordSimal
authored andcommitted
Remove underscore prefix from Validation class property
1 parent d618443 commit 89c9b90

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

config/rector/sets/cakephp60.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@
3232
new RenameProperty('Cake\Utility\Security', '_instance', 'instance'),
3333
new RenameProperty('Cake\Utility\CookieCryptTrait', '_validCiphers', 'validCiphers'),
3434
new RenameProperty('Cake\Utility\Text', '_defaultTransliterator', 'defaultTransliterator'),
35+
new RenameProperty('Cake\Validation\Validator', '_fields', 'fields'),
36+
new RenameProperty('Cake\Validation\Validator', '_providers', 'providers'),
37+
new RenameProperty('Cake\Validation\Validator', '_defaultProviders', 'defaultProviders'),
38+
new RenameProperty('Cake\Validation\Validator', '_presenceMessages', 'presenceMessages'),
39+
new RenameProperty('Cake\Validation\Validator', '_useI18n', 'useI18n'),
40+
new RenameProperty('Cake\Validation\Validator', '_allowEmptyMessages', 'allowEmptyMessages'),
41+
new RenameProperty('Cake\Validation\Validator', '_allowEmptyFlags', 'allowEmptyFlags'),
42+
new RenameProperty('Cake\Validation\Validator', '_stopOnFailure', 'stopOnFailure'),
43+
new RenameProperty('Cake\Validation\ValidationSet', '_rules', 'rules'),
44+
new RenameProperty('Cake\Validation\ValidationSet', '_validatePresent', 'validatePresent'),
45+
new RenameProperty('Cake\Validation\ValidationSet', '_allowEmpty', 'allowEmpty'),
46+
new RenameProperty('Cake\Validation\Validation', '_pattern', 'pattern'),
3547
]);
3648

3749
$rectorConfig->ruleWithConfiguration(RenameStringRector::class, [

0 commit comments

Comments
 (0)