Skip to content

Commit 10a5dab

Browse files
committed
remove underscores from events properties (#345)
1 parent 83cb84e commit 10a5dab

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

config/rector/sets/cakephp60.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,18 @@
186186
],
187187
],
188188

189+
// There are no properties in the Error package
190+
191+
'Event' => [
192+
'Cake\Event\Decorator\AbstractDecorator' => ['_callable', '_options'],
193+
'Cake\Event\Event' => ['_name', '_subject', '_data', '_stopped'],
194+
'Cake\Event\EventDispatcherTrait' => ['_eventManager', '_eventClass'],
195+
'Cake\Event\EventList' => ['_events'],
196+
'Cake\Event\EventManager' => [
197+
'_generalManager', '_listeners', '_isGlobal', '_eventList', '_trackEvents',
198+
],
199+
],
200+
189201
'ORM' => [
190202
'Cake\ORM\Association' => [
191203
'_name', '_className', '_bindingKey', '_foreignKey', '_conditions',

0 commit comments

Comments
 (0)