Skip to content

Commit c137790

Browse files
committed
Fix CS
1 parent 6366fbf commit c137790

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Annotation/Route.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(array $data)
4646
foreach ($data as $key => $value) {
4747
$method = 'set'.str_replace('_', '', $key);
4848
if (!method_exists($this, $method)) {
49-
throw new \BadMethodCallException(sprintf('Unknown property "%s" on annotation "%s".', $key, \get_class($this)));
49+
throw new \BadMethodCallException(sprintf('Unknown property "%s" on annotation "%s".', $key, static::class));
5050
}
5151
$this->$method($value);
5252
}

Loader/ObjectRouteLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function load($resource, $type = null)
5555
$loaderObject = $this->getServiceObject($serviceString);
5656

5757
if (!\is_object($loaderObject)) {
58-
throw new \LogicException(sprintf('%s:getServiceObject() must return an object: %s returned', \get_class($this), \gettype($loaderObject)));
58+
throw new \LogicException(sprintf('%s:getServiceObject() must return an object: %s returned', static::class, \gettype($loaderObject)));
5959
}
6060

6161
if (!method_exists($loaderObject, $method)) {

0 commit comments

Comments
 (0)