1 | <?php |
||
12 | final class AnnotatedClass |
||
13 | { |
||
14 | /** |
||
15 | * @var AnnotationReader |
||
16 | */ |
||
17 | private $reader; |
||
18 | |||
19 | /** |
||
20 | * @var AnnotatedClassMethods |
||
21 | */ |
||
22 | private $injectionMethod; |
||
23 | |||
24 | 44 | public function __construct(AnnotationReader $reader) |
|
30 | |||
31 | /** |
||
32 | * Return factory instance |
||
33 | * |
||
34 | * @param \ReflectionClass $class Target class reflection |
||
35 | * |
||
36 | * @return NewInstance |
||
37 | */ |
||
38 | 44 | public function getNewInstance(\ReflectionClass $class) |
|
53 | |||
54 | /** |
||
55 | * Return @-PostConstruct method reflection |
||
56 | * |
||
57 | * @param \ReflectionClass $class |
||
58 | * |
||
59 | * @return null|\ReflectionMethod |
||
60 | */ |
||
61 | 44 | public function getPostConstruct(\ReflectionClass $class) |
|
74 | } |
||
75 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.