Skip to content

Commit 9d187e7

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Fix CS Fix CS
2 parents 7da3337 + ac1095c commit 9d187e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Annotation/Route.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Route
4343
public function __construct(array $data)
4444
{
4545
if (isset($data['localized_paths'])) {
46-
throw new \BadMethodCallException(sprintf('Unknown property "localized_paths" on annotation "%s".', \get_class($this)));
46+
throw new \BadMethodCallException(sprintf('Unknown property "localized_paths" on annotation "%s".', static::class));
4747
}
4848

4949
if (isset($data['value'])) {
@@ -74,7 +74,7 @@ public function __construct(array $data)
7474
foreach ($data as $key => $value) {
7575
$method = 'set'.str_replace('_', '', $key);
7676
if (!method_exists($this, $method)) {
77-
throw new \BadMethodCallException(sprintf('Unknown property "%s" on annotation "%s".', $key, \get_class($this)));
77+
throw new \BadMethodCallException(sprintf('Unknown property "%s" on annotation "%s".', $key, static::class));
7878
}
7979
$this->$method($value);
8080
}

Loader/ObjectLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function load($resource, string $type = null)
5252
$loaderObject = $this->getObject($parts[0]);
5353

5454
if (!\is_object($loaderObject)) {
55-
throw new \TypeError(sprintf('%s:getObject() must return an object: %s returned', \get_class($this), \gettype($loaderObject)));
55+
throw new \TypeError(sprintf('%s:getObject() must return an object: %s returned', static::class, \gettype($loaderObject)));
5656
}
5757

5858
if (!\is_callable([$loaderObject, $method])) {

0 commit comments

Comments
 (0)