File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
src/PhpParser/NodeTraverser Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 2424 "ondram/ci-detector" : " ^4.2" ,
2525 "phpstan/phpdoc-parser" : " ^2.3" ,
2626 "phpstan/phpstan" : " ^2.1.32" ,
27- "react/event-loop" : " ^1.5 " ,
27+ "react/event-loop" : " ^1.6 " ,
2828 "react/promise" : " ^3.3" ,
2929 "react/socket" : " ^1.16" ,
3030 "rector/extension-installer" : " ^0.11.2" ,
3939 "symfony/process" : " ^6.4" ,
4040 "symplify/easy-parallel" : " ^11.2.2" ,
4141 "symplify/rule-doc-generator-contracts" : " ^11.2" ,
42- "webmozart/assert" : " ^1.11 "
42+ "webmozart/assert" : " ^1.12 "
4343 },
4444 "require-dev" : {
4545 "nette/robot-loader" : " ^4.1" ,
5959 "symplify/phpstan-rules" : " ^14.8" ,
6060 "symplify/vendor-patches" : " ^11.5" ,
6161 "tomasvotruba/class-leak" : " ^2.0" ,
62- "tracy/tracy" : " ^2.10 "
62+ "tracy/tracy" : " ^2.11 "
6363 },
6464 "replace" : {
6565 "rector/rector" : " self.version"
Original file line number Diff line number Diff line change @@ -65,15 +65,11 @@ public function getVisitorsForNode(Node $node): array
6565 {
6666 $ nodeClass = $ node ::class;
6767
68- static $ counter = 0 ;
69-
7068 if (! isset ($ this ->visitorsPerNodeClass [$ nodeClass ])) {
7169 $ this ->visitorsPerNodeClass [$ nodeClass ] = [];
7270 /** @var RectorInterface $visitor */
7371 foreach ($ this ->visitors as $ visitor ) {
7472 foreach ($ visitor ->getNodeTypes () as $ nodeType ) {
75- ++$ counter ;
76-
7773 if (is_a ($ nodeClass , $ nodeType , true )) {
7874 $ this ->visitorsPerNodeClass [$ nodeClass ][] = $ visitor ;
7975 continue 2 ;
You can’t perform that action at this time.
0 commit comments