Skip to content

Commit 968b232

Browse files
committed
Apply type changes
1 parent 0b4e1be commit 968b232

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
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) {

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)