Skip to content

Commit 665db2a

Browse files
committed
Replace $this::class by static::class
1 parent b961216 commit 665db2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Key/Loader/DelegatingKeyLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function load(ResourceInterface $resource): array
4949
{
5050
$loader = $this->findLoader($resource);
5151
if (null === $loader) {
52-
throw new NotSupportedResourceException($this::class, $resource::class, __METHOD__);
52+
throw new NotSupportedResourceException(static::class, $resource::class, __METHOD__);
5353
}
5454

5555
return $loader->load($resource);

src/Key/Loader/FileKeyLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(
3838
public function load(ResourceInterface $resource): array
3939
{
4040
if (!$resource instanceof File) {
41-
throw new NotSupportedResourceException($this::class, $resource::class, __METHOD__);
41+
throw new NotSupportedResourceException(static::class, $resource::class, __METHOD__);
4242
}
4343

4444
$path = $resource->getPath();

0 commit comments

Comments
 (0)