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(
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
You can’t perform that action at this time.
0 commit comments