Skip to content

Commit 29a73c1

Browse files
committed
lint
1 parent e69e5f3 commit 29a73c1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/Type/Php/PropertyExistsTypeSpecifyingExtension.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ public function specifyTypes(
7777
} elseif ($objectType->isObject()->yes()) {
7878
$propertyNodes = [];
7979

80-
foreach($propertyNameTypes as $propertyNameType) {
81-
if($propertyNameType->getValue() === '') {
80+
foreach ($propertyNameTypes as $propertyNameType) {
81+
if ($propertyNameType->getValue() === '') {
8282
return new SpecifiedTypes([], []);
8383
}
8484

@@ -91,12 +91,14 @@ public function specifyTypes(
9191
return new SpecifiedTypes([], []);
9292
}
9393

94-
foreach($propertyNodes as $propertyNode) {
94+
foreach ($propertyNodes as $propertyNode) {
9595
$propertyReflection = $this->propertyReflectionFinder->findPropertyReflectionFromNode($propertyNode, $scope);
96-
if ($propertyReflection !== null) {
97-
if (!$propertyReflection->isNative()) {
98-
return new SpecifiedTypes([], []);
99-
}
96+
if ($propertyReflection === null) {
97+
continue;
98+
}
99+
100+
if (!$propertyReflection->isNative()) {
101+
return new SpecifiedTypes([], []);
100102
}
101103
}
102104

0 commit comments

Comments
 (0)