Skip to content

Commit

Permalink
EndpointInfo: Fix coding standard: $endpoint::class
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored May 6, 2021
1 parent f4e99af commit 4167ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Descriptor/EndpointInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(string $route, string $class, Endpoint $endpoint)
try {
$this->reflection = new \ReflectionClass($endpoint);
} catch (\ReflectionException $e) {
throw new \InvalidArgumentException('Endpoint "' . \get_class($endpoint) . '" is invalid: ' . $e->getMessage(), $e->getCode(), $e);
throw new \InvalidArgumentException('Endpoint "' . $endpoint::class . '" is invalid: ' . $e->getMessage(), $e->getCode(), $e);
}

$this->route = $route;
Expand Down

0 comments on commit 4167ae3

Please sign in to comment.