| Conditions | 1 |
| Paths | 1 |
| Total Lines | 3 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function testResolve(): void { |
||
| 22 | $lang = $this->resolver->resolve(); |
||
|
1 ignored issue
–
show
|
|||
| 23 | Assert::type("null", $lang); |
||
| 24 | } |
||
| 29 | ?> |
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.