Skip to content

Commit ebc0cac

Browse files
committed
[ci-review] Rector Rectify
1 parent 77c6a6b commit ebc0cac

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

rules/TypeDeclaration/Rector/Class_/TypedPropertyFromDocblockSetUpDefinedRector.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)