Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Fixed catchers for loop and code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
CommandString authored Jun 19, 2023
1 parent e6b74c0 commit bafccbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bootstrap/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@
$path = dirname($file);
$namespace = $convertPathToNamespace($path);
$className = $namespace . '\\' . $className;
$reflection = new ReflectionClass($catcher);
$reflection = new ReflectionClass($className);
$catcherProperties = $reflection->getAttributes(Catcher::class, ReflectionAttribute::IS_INSTANCEOF)[0] ?? null;

if ($catcherProperties === null) {
continue;
}

$catcher = new $className();

/** @var Catcher $settings */
Expand Down

0 comments on commit bafccbd

Please sign in to comment.