File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ public function specifyTypes(
77
77
} elseif ($ objectType ->isObject ()->yes ()) {
78
78
$ propertyNodes = [];
79
79
80
- foreach ($ propertyNameTypes as $ propertyNameType ) {
81
- if ($ propertyNameType ->getValue () === '' ) {
80
+ foreach ($ propertyNameTypes as $ propertyNameType ) {
81
+ if ($ propertyNameType ->getValue () === '' ) {
82
82
return new SpecifiedTypes ([], []);
83
83
}
84
84
@@ -91,12 +91,14 @@ public function specifyTypes(
91
91
return new SpecifiedTypes ([], []);
92
92
}
93
93
94
- foreach ($ propertyNodes as $ propertyNode ) {
94
+ foreach ($ propertyNodes as $ propertyNode ) {
95
95
$ 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 ([], []);
100
102
}
101
103
}
102
104
You can’t perform that action at this time.
0 commit comments