Skip to content

Commit

Permalink
Apply type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Sep 13, 2023
1 parent 0b4e1be commit 968b232
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Tracing/Cache/TraceableCacheAdapterForV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(HubInterface $hub, AdapterInterface $decoratedAdapte
*
* @return mixed
*/
public function get(string $key, callable $callback, float $beta = null, array &$metadata = null)
public function get(string $key, callable $callback, float $beta = null, array &$metadata = null): mixed
{
return $this->traceFunction('cache.get_item', function () use ($key, $callback, $beta, &$metadata) {
if (!$this->decoratedAdapter instanceof CacheInterface) {
Expand Down
2 changes: 1 addition & 1 deletion src/Tracing/Cache/TraceableTagAwareCacheAdapterForV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(HubInterface $hub, TagAwareAdapterInterface $decorat
*
* @return mixed
*/
public function get(string $key, callable $callback, float $beta = null, array &$metadata = null)
public function get(string $key, callable $callback, float $beta = null, array &$metadata = null): mixed
{
return $this->traceFunction('cache.get_item', function () use ($key, $callback, $beta, &$metadata) {
if (!$this->decoratedAdapter instanceof CacheInterface) {
Expand Down
5 changes: 5 additions & 0 deletions tests/EventListener/Fixtures/UserWithoutIdentifierStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,9 @@ public function getSalt(): ?string
public function eraseCredentials(): void
{
}

public function getUserIdentifier(): string
{
return $this->getUsername();
}
}

0 comments on commit 968b232

Please sign in to comment.