@@ -83,9 +83,9 @@ protected function validateItems(&$value, $schema = null, JsonPointer $path = nu
83
83
$ typeValidator ->check ($ v , $ schema ->items , $ k_path , $ i );
84
84
85
85
$ validator ->check ($ v , $ schema ->items , $ k_path , $ i );
86
- unset($ v ); // remove dangling reference to prevent any future bugs
87
- // caused by accidentally using $v elsewhere
88
86
}
87
+ unset($ v ); // remove dangling reference to prevent any future bugs
88
+ // caused by accidentally using $v elsewhere
89
89
$ this ->addErrors ($ typeValidator ->getErrors ());
90
90
$ this ->addErrors ($ validator ->getErrors ());
91
91
} else {
@@ -107,9 +107,9 @@ protected function validateItems(&$value, $schema = null, JsonPointer $path = nu
107
107
} elseif (isset ($ secondErrors ) && count ($ secondErrors ) === count ($ this ->getErrors ())) {
108
108
$ this ->errors = $ initErrors ;
109
109
}
110
- unset($ v ); // remove dangling reference to prevent any future bugs
111
- // caused by accidentally using $v elsewhere
112
110
}
111
+ unset($ v ); // remove dangling reference to prevent any future bugs
112
+ // caused by accidentally using $v elsewhere
113
113
}
114
114
} else {
115
115
// Defined item type definitions
@@ -130,9 +130,9 @@ protected function validateItems(&$value, $schema = null, JsonPointer $path = nu
130
130
$ this ->checkUndefined ($ v , new \stdClass (), $ path , $ k );
131
131
}
132
132
}
133
- unset($ v ); // remove dangling reference to prevent any future bugs
134
- // caused by accidentally using $v elsewhere
135
133
}
134
+ unset($ v ); // remove dangling reference to prevent any future bugs
135
+ // caused by accidentally using $v elsewhere
136
136
137
137
// Treat when we have more schema definitions than values, not for empty arrays
138
138
if (count ($ value ) > 0 ) {
0 commit comments