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...
32
}
33
34
public function validate(Request $request): ?RequestProblemExceptionInterface
35
{
36
foreach ($this->validators as $validator) {
37
$exception = $validator->validate($request);
38
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..