It seems like $validators of type iterable is incompatible with the declared type Nijens\OpenapiBundle\Val...or\ValidatorInterface[] of property $validators.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
38
}
39
40
public function validate(Request $request): ?RequestProblemExceptionInterface
41
{
42
foreach ($this->validators as $validator) {
43
$exception = $validator->validate($request);
44
if ($exception instanceof RequestProblemExceptionInterface) {
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..