Skip to content

Commit b7e3e90

Browse files
committed
psalm fix
1 parent 218d13a commit b7e3e90

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/RandomTokenGenerator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public function __construct(
1414
) {
1515
}
1616

17+
#[\Override]
1718
public function generate(): string
1819
{
1920
return \bin2hex(\random_bytes($this->length));

src/RoadRunnerStore.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function withTtl(float $ttl, float $waitTtl = 0): self
3636
return new self($this->lock, $this->tokens, $ttl, $waitTtl);
3737
}
3838

39+
#[\Override]
3940
public function save(Key $key): void
4041
{
4142
\assert(false === $key->hasState(__CLASS__));
@@ -58,6 +59,7 @@ public function save(Key $key): void
5859
}
5960
}
6061

62+
#[\Override]
6163
public function saveRead(Key $key): void
6264
{
6365
\assert(false === $key->hasState(__CLASS__));
@@ -74,6 +76,7 @@ public function saveRead(Key $key): void
7476
$key->setState(__CLASS__, $lockId);
7577
}
7678

79+
#[\Override]
7780
public function exists(Key $key): bool
7881
{
7982
\assert($key->hasState(__CLASS__));
@@ -86,6 +89,7 @@ public function exists(Key $key): bool
8689
return $this->lock->exists($resource, $lockId);
8790
}
8891

92+
#[\Override]
8993
public function putOffExpiration(Key $key, float $ttl): void
9094
{
9195
\assert($key->hasState(__CLASS__));
@@ -101,6 +105,7 @@ public function putOffExpiration(Key $key, float $ttl): void
101105
}
102106
}
103107

108+
#[\Override]
104109
public function delete(Key $key): void
105110
{
106111
\assert($key->hasState(__CLASS__));
@@ -111,6 +116,7 @@ public function delete(Key $key): void
111116
$this->lock->release($resource, $lockId);
112117
}
113118

119+
#[\Override]
114120
public function waitAndSave(Key $key): void
115121
{
116122
$lockId = $this->getUniqueToken($key);

0 commit comments

Comments
 (0)