| 1 | <?php |
||
| 13 | class ActorMovieController extends BaseController |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @Route("/api/actors/{id}/movies", methods={"GET"}, requirements={"id"="\d+"}) |
||
| 17 | * |
||
| 18 | * @param Request $request |
||
| 19 | * @param int $id |
||
| 20 | * @param MovieRepository $repository |
||
| 21 | * |
||
| 22 | * @throws |
||
| 23 | * |
||
| 24 | * @return JsonResponse |
||
| 25 | */ |
||
| 26 | 2 | public function getActorsMovies(Request $request, int $id, MovieRepository $repository) |
|
| 37 | } |
||
| 38 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.