diff --git a/src/GW2Api.php b/src/GW2Api.php index a6f4cd0..46ec0be 100644 --- a/src/GW2Api.php +++ b/src/GW2Api.php @@ -153,7 +153,7 @@ public function registerHandler( $handler ) { } $firstConstructorParameter = $handlerClass->getConstructor()->getParameters()[0]; - $this->handlers[ $handler ] = $firstConstructorParameter->getClass()->getName(); + $this->handlers[ $handler ] = $firstConstructorParameter->getType()->getName(); } protected function registerDefaultHandlers() {