From b15207d10e6568f4461c58114b72fb86825db260 Mon Sep 17 00:00:00 2001 From: darthmaim Date: Tue, 14 Nov 2023 13:19:11 +0100 Subject: [PATCH] Replace deprecated getClass with getType --- src/GW2Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {