Skip to content

Commit

Permalink
[10.x] Route::getController() should return null when the accessing
Browse files Browse the repository at this point in the history
closure based route

fixes #49267

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Dec 7, 2023
1 parent 81d5ed9 commit 1d75e57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Routing/Route.php
Original file line number Diff line number Diff line change
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 1d75e57

Please sign in to comment.