Skip to content

Commit

Permalink
Named arg
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah authored May 7, 2023
1 parent e68b5b2 commit e69ceaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ protected function findModelFromUrlThing(string $urlThing): ?Model

if (class_exists($class = "{$rootNamespace}Models\\" . $className, autoload: false)
// For the heathens that don't use a Models\ directory
|| class_exists($class = $rootNamespace . $className, false)) {
|| class_exists($class = $rootNamespace . $className, autoload: false)) {
try {
$instance = new $class;
} catch (\Error) { // It might be an enum or some other non-instantiable class
Expand Down

0 comments on commit e69ceaf

Please sign in to comment.