Skip to content

Commit 03ec70e

Browse files
committed
chore: apply fixes from qa
1 parent a53440d commit 03ec70e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Tempest/Storage/src/ForbiddenStorageUsageException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
final class ForbiddenStorageUsageException extends Exception implements StorageException
88
{
99
public function __construct(
10-
private readonly ?string $tag = null,
10+
public readonly ?string $tag = null,
1111
) {
1212
parent::__construct(
1313
message: $tag

src/Tempest/Storage/src/GenericStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function list(string $location = '', bool $deep = false): DirectoryListin
156156
private function createAdapter(): FilesystemAdapter
157157
{
158158
$this->assertAdapterInstalled(
159-
new ReflectionMethod($this->storageConfig, 'createAdapter')->getReturnType()->getName(),
159+
new ReflectionMethod($this->storageConfig, 'createAdapter')->getReturnType()->getName(), // @phpstan-ignore method.notFound
160160
);
161161

162162
$adapter = $this->storageConfig->createAdapter();

src/Tempest/Storage/src/Testing/RestrictedStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
use Tempest\Storage\ForbiddenStorageUsageException;
88
use Tempest\Storage\Storage;
99

10-
final class RestrictedStorage implements Storage
10+
final readonly class RestrictedStorage implements Storage
1111
{
1212
public function __construct(
13-
private readonly ?string $tag = null,
13+
private ?string $tag = null,
1414
) {}
1515

1616
public function write(string $location, string $contents): static

0 commit comments

Comments
 (0)