We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecff9a1 commit 4684f62Copy full SHA for 4684f62
src/Type/Php/PropertyExistsTypeSpecifyingExtension.php
@@ -68,10 +68,6 @@ public function specifyTypes(
68
69
$hasPropertyTypes = [];
70
foreach ($propertyNameTypes as $propertyNameType) {
71
- if($propertyNameType->getValue() === '') {
72
- return new SpecifiedTypes([], []);
73
- }
74
-
75
$hasPropertyTypes[] = new HasPropertyType($propertyNameType->getValue());
76
}
77
@@ -82,6 +78,10 @@ public function specifyTypes(
82
78
$propertyNodes = [];
83
79
84
80
foreach($propertyNameTypes as $propertyNameType) {
81
+ if($propertyNameType->getValue() === '') {
+ return new SpecifiedTypes([], []);
+ }
+
85
$propertyNodes[] = new PropertyFetch(
86
$node->getArgs()[0]->value,
87
new Identifier($propertyNameType->getValue()),
0 commit comments