| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function listAction(): Response |
||
| 16 | { |
||
| 17 | $em = $this->getDoctrine()->getManager(); |
||
| 18 | $acces_right = $em->getRepository("RibsAdminBundle:AccessRight")->findAll(); |
||
| 19 | |||
| 20 | return $this->render("@RibsAdmin/access-rights/list-all-list.html.twig", [ |
||
| 21 | "access_right" => $acces_right |
||
| 22 | ]); |
||
| 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: