Skip to content

Commit 21a15ce

Browse files
committed
Apply type changes
1 parent 0b4e1be commit 21a15ce

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

src/Tracing/Cache/TraceableCacheAdapterForV2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(HubInterface $hub, AdapterInterface $decoratedAdapte
4040
*
4141
* @return mixed
4242
*/
43-
public function get(string $key, callable $callback, float $beta = null, array &$metadata = null)
43+
public function get(string $key, callable $callback, float $beta = null, array &$metadata = null): mixed
4444
{
4545
return $this->traceFunction('cache.get_item', function () use ($key, $callback, $beta, &$metadata) {
4646
if (!$this->decoratedAdapter instanceof CacheInterface) {

src/Tracing/Cache/TraceableTagAwareCacheAdapterForV2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(HubInterface $hub, TagAwareAdapterInterface $decorat
4141
*
4242
* @return mixed
4343
*/
44-
public function get(string $key, callable $callback, float $beta = null, array &$metadata = null)
44+
public function get(string $key, callable $callback, float $beta = null, array &$metadata = null): mixed
4545
{
4646
return $this->traceFunction('cache.get_item', function () use ($key, $callback, $beta, &$metadata) {
4747
if (!$this->decoratedAdapter instanceof CacheInterface) {

src/Tracing/Doctrine/DBAL/TracingDriverConnection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function query(?string $sql = null, ...$args): Result
120120
*
121121
* @return mixed
122122
*/
123-
public function quote($value, $type = ParameterType::STRING)
123+
public function quote($value, $type = ParameterType::STRING): mixed
124124
{
125125
return $this->decoratedConnection->quote($value, $type);
126126
}
@@ -140,7 +140,7 @@ public function exec($sql): int
140140
*
141141
* @return string|int|false
142142
*/
143-
public function lastInsertId($name = null)
143+
public function lastInsertId($name = null): string|int|false
144144
{
145145
return $this->decoratedConnection->lastInsertId($name);
146146
}

src/Tracing/Doctrine/DBAL/TracingServerInfoAwareDriverConnection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function query(?string $sql = null, ...$args): Result
5454
*
5555
* @return mixed
5656
*/
57-
public function quote($value, $type = ParameterType::STRING)
57+
public function quote($value, $type = ParameterType::STRING): mixed
5858
{
5959
return $this->decoratedConnection->quote($value, $type);
6060
}
@@ -72,7 +72,7 @@ public function exec($sql): int
7272
*
7373
* @return string|int|false
7474
*/
75-
public function lastInsertId($name = null)
75+
public function lastInsertId($name = null): string|int|false
7676
{
7777
return $this->decoratedConnection->lastInsertId($name);
7878
}

tests/EventListener/Fixtures/UserWithoutIdentifierStub.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,9 @@ public function getSalt(): ?string
3131
public function eraseCredentials(): void
3232
{
3333
}
34+
35+
public function getUserIdentifier(): string
36+
{
37+
return $this->getUsername();
38+
}
3439
}

0 commit comments

Comments
 (0)