diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 698b4e91..75fa57ff 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -400,7 +400,7 @@ class Loader extends BaseObject continue; } - $class = Snowflake::createObject($className['handler']); + $class = Snowflake::createObject($annotations['handler']); foreach ($annotations['target'] ?? [] as $value) { $value->execute([$class]); }