| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class AccessRightsController extends Controller |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @Route("/access-rights-management", name="ribsadmin_access_rights") |
||
| 13 | * @return Response |
||
| 14 | */ |
||
| 15 | public function listAction(): Response |
||
| 22 | ]); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @Route("/access-rights-management/create/", name="ribsadmin_access_rights_create") |
||
| 27 | * @Route("/access-rights-management/edit/{guid}", name="ribsadmin_access_rights_edit") |
||
| 28 | * @return Response |
||
| 29 | */ |
||
| 30 | public function editAction(): Response { |
||
| 33 | } |
For hinted functions/methods where all return statements with the correct type are only reachable via conditions, ?null? gets implicitly returned which may be incompatible with the hinted type. Let?s take a look at an example: