Closed
Closed
Copy link
Description
Having such action:
public function index(Request $request, PostRepository $posts): Response
and such routing:
index:
path: /en/blog
controller: App\Controller\BlogController::Index
yields
Controller "App\Controller\BlogController::Index()" requires that you provide a value for the "$posts" argument. Either the argument is nullable and no null value has been provided, no default value has been provided or because there is a non optional argument after this one.
This is because user made a typo in routing and used BlogController::Index, instead of BlogController::index
Metadata
Metadata
Assignees
Labels
Issues and PRs which are looking for volunteers to complete them.Issues and PRs which are looking for volunteers to complete them.