1 | <?php |
||
15 | class Registry extends ManagerRegistry implements ResetInterface |
||
16 | { |
||
17 | /** |
||
18 | * @param string[] $connections |
||
19 | * @param string[] $entityManagers |
||
20 | * @param string $defaultConnection |
||
21 | * @param string $defaultEntityManager |
||
22 | */ |
||
23 | public function __construct(ContainerInterface $container, array $connections, array $entityManagers, $defaultConnection, $defaultEntityManager) |
||
29 | |||
30 | /** |
||
31 | * Resolves a registered namespace alias to the full namespace. |
||
32 | * |
||
33 | * This method looks for the alias in all registered entity managers. |
||
34 | * |
||
35 | * @see Configuration::getEntityNamespace |
||
36 | * |
||
37 | * @param string $alias The alias |
||
38 | * |
||
39 | * @return string The full namespace |
||
40 | */ |
||
41 | public function getAliasNamespace($alias) |
||
52 | |||
53 | public function reset() : void |
||
59 | |||
60 | private function resetOrClearManager(string $managerName, string $serviceId) : void |
||
78 | } |
||
79 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.