File tree Expand file tree Collapse file tree
rules/TypeDeclaration/Rector/Class_ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,12 +104,14 @@ public function refactor(Node $node): ?Node
104104
105105 foreach ($ node ->getProperties () as $ property ) {
106106 // already known type
107- if ($ property ->type instanceof \ PhpParser \ Node) {
107+ if ($ property ->type instanceof Node) {
108108 continue ;
109109 }
110-
111110 // some magic might be going on
112- if ($ property ->isStatic () || ! $ property ->isPrivate ()) {
111+ if ($ property ->isStatic ()) {
112+ continue ;
113+ }
114+ if (! $ property ->isPrivate ()) {
113115 continue ;
114116 }
115117
@@ -137,7 +139,7 @@ public function refactor(Node $node): ?Node
137139 $ varType ,
138140 TypeKind::PROPERTY
139141 );
140- if (! $ nativePropertyTypeNode instanceof \ PhpParser \ Node) {
142+ if (! $ nativePropertyTypeNode instanceof Node) {
141143 continue ;
142144 }
143145
You can’t perform that action at this time.
0 commit comments