1 | <?php |
||
19 | final class EntityArgument implements Argument |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $entityClass; |
||
26 | |||
27 | /** |
||
28 | * @var Argument |
||
29 | */ |
||
30 | private $id; |
||
31 | |||
32 | /** |
||
33 | * @var ObjectManager |
||
34 | */ |
||
35 | private $objectManager; |
||
36 | |||
37 | /** |
||
38 | * @var ObjectRepository|null |
||
39 | */ |
||
40 | private $repository; |
||
41 | |||
42 | /** @var array<string, mixed> */ |
||
43 | private static $constantMap = array( |
||
44 | 'true' => true, |
||
45 | 'false' => false, |
||
46 | 'null' => null, |
||
47 | ); |
||
48 | |||
49 | 3 | public function __construct( |
|
58 | |||
59 | 1 | public function resolve() |
|
80 | |||
81 | private function repository(): ObjectRepository |
||
89 | |||
90 | } |
||
91 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.