Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | abstract class SecurityIntegrationTest extends IntegrationTest |
||
10 | { |
||
11 | |||
12 | protected ?string $token = null; |
||
13 | |||
14 | /** |
||
15 | * Create a client with a default Authorization header. |
||
16 | * |
||
17 | * |
||
18 | * @return KernelBrowser |
||
19 | */ |
||
20 | protected function createAuthenticatedClient(): KernelBrowser |
||
27 | } |
||
28 | |||
29 | private function createToken(KernelBrowser $client): string |
||
52 | } |
||
53 | } |
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.