Skip to content

Commit

Permalink
[10.x] Route::getController() should return null when the accessi…
Browse files Browse the repository at this point in the history
…ng (#49269)

closure based route

fixes #49267

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Dec 7, 2023
1 parent 7be968a commit 88d6037
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Routing/Route.php
Expand Up @@ -268,6 +268,10 @@ protected function runController()
*/
public function getController()
{
if (! $this->isControllerAction()) {
return null;
}

if (! $this->controller) {
$class = $this->getControllerClass();

Expand Down

0 comments on commit 88d6037

Please sign in to comment.