Skip to content

Commit

Permalink
Replace deprecated getClass with getType
Browse files Browse the repository at this point in the history
  • Loading branch information
darthmaim authored Nov 14, 2023
1 parent 17306b3 commit b15207d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GW2Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit b15207d

Please sign in to comment.