| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | public function seeIsGranted($attributes) |
||
| 43 | { |
||
| 44 | /** @var \Symfony\Component\Security\Core\Authorization\AuthorizationChecker $authorizationChecker */ |
||
| 45 | $authorizationChecker = $this->getSymfonyModule()->grabService('security.authorization_checker'); |
||
| 46 | $this->assertTrue($authorizationChecker->isGranted($attributes)); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: