Total Complexity | 9 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | final class ParseClassFqnNodeVisitor extends NodeVisitorAbstract |
||
18 | { |
||
19 | private ?string $namespace = null; |
||
20 | private ?string $className = null; |
||
21 | |||
22 | 4 | public function __construct( |
|
23 | private readonly ClassDependencies $classDependencies, |
||
24 | ) { |
||
25 | 4 | } |
|
26 | |||
27 | 4 | public function enterNode(Node $node): int|Node|null |
|
42 | } |
||
43 | } |
||
44 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()
can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.