You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Problem is resolved later, here.
You can specify like this $app->router->post('/contact', [SiteController::class, 'handleContact']); and it will create an instance behind
Php8 does not accept
$app->router->post('/contact', [SiteController::class, 'handleContact']);
It accepts
$app->router->post('/contact', [new SiteController(), 'handleContact']);
The problem occurs if you are building the framework following the steps in the video. It is solved later in
Router->resolve()
The text was updated successfully, but these errors were encountered: