File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 66
66
67
67
{% if generatorConfiguration.collectErrors() %}
68
68
$compositionErrorCollection[] = $this->_errorRegistry;
69
- isset($validatorIndex) ? $this->_propertyValidationState[$validatorIndex][$validatorComponentIndex] = $this->_errorRegistry : null;
69
+ if (isset($validatorIndex)) {
70
+ $this->_propertyValidationState[$validatorIndex][$validatorComponentIndex] = $this->_errorRegistry;
71
+ }
70
72
71
73
// an error inside the composed validation occurred. Throw an exception to count the validity of the
72
74
// composition item
Original file line number Diff line number Diff line change @@ -201,14 +201,14 @@ public function invalidNestedObjectDataProvider(): array
201
201
<<<ERROR
202
202
Invalid nested object for property property:
203
203
- Invalid type for name. Requires string, got integer
204
- ERROR ,
204
+ ERROR
205
205
],
206
206
'invalid additional property ' => [
207
207
['name ' => 'Hans ' , 'age ' => 42 ],
208
208
<<<ERROR
209
209
Invalid nested object for property property:
210
210
- Provided JSON for MultiTypePropertyTest_\w+ contains not allowed additional properties \[age\]
211
- ERROR ,
211
+ ERROR
212
212
],
213
213
];
214
214
}
You can’t perform that action at this time.
0 commit comments