From bafccbd242307d6f1fb94350b5c13affe38a7145 Mon Sep 17 00:00:00 2001 From: Robert Snedeker Date: Sun, 18 Jun 2023 23:41:05 -0400 Subject: [PATCH] Fixed catchers for loop and code styling --- Bootstrap/router.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bootstrap/router.php b/Bootstrap/router.php index 884e9e7..569c71a 100644 --- a/Bootstrap/router.php +++ b/Bootstrap/router.php @@ -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 */