It seems like $managerRegistry of type Doctrine\Common\Persistence\ManagerRegistry is incompatible with the declared type Doctrine\Common\Persistence\ObjectRepository of property $managerRegistry.
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...
26
}
27
28
/**
29
* @param string $resourceClass
30
* @param int|string $id
31
* @param string|null $operationName
32
* @param array $context
33
*
34
* @return Layout|null
35
* @throws ResourceClassNotSupportedException
36
*/
37
public function getItem(string $resourceClass, $id, string $operationName = null, array $context = [])
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..