Skip to content

Commit 172ee36

Browse files
committed
types
1 parent 0343388 commit 172ee36

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
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($key, callable $callback, ?float $beta = null, ?array &$metadata = null)
43+
public function get(string $key, callable $callback, ?float $beta = null, ?array &$metadata = null)
4444
{
4545
return $this->traceGet($key, $callback, $beta, $metadata);
4646
}

src/Tracing/Cache/TraceableCacheAdapterForV3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(HubInterface $hub, AdapterInterface $decoratedAdapte
3838
*
3939
* @param mixed[] $metadata
4040
*/
41-
public function get($key, callable $callback, ?float $beta = null, ?array &$metadata = null)
41+
public function get($key, callable $callback, ?float $beta = null, ?array &$metadata = null): mixed
4242
{
4343
return $this->traceGet($key, $callback, $beta, $metadata);
4444
}

src/Tracing/Cache/TraceableCacheAdapterForV3WithNamespace.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
* @param mixed[] $metadata
4141
* @return mixed
4242
*/
43-
public function get($key, callable $callback, ?float $beta = null, ?array &$metadata = null)
43+
public function get($key, callable $callback, ?float $beta = null, ?array &$metadata = null): mixed
4444
{
4545
return $this->traceGet($key, $callback, $beta, $metadata);
4646
}

src/Tracing/Cache/TraceableTagAwareCacheAdapterForV2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(HubInterface $hub, TagAwareAdapterInterface $decorat
4040
*
4141
* @return mixed
4242
*/
43-
public function get($key, callable $callback, ?float $beta = null, ?array &$metadata = null)
43+
public function get(string $key, callable $callback, ?float $beta = null, ?array &$metadata = null)
4444
{
4545
return $this->traceGet($key, $callback, $beta, $metadata);
4646
}

src/Tracing/Cache/TraceableTagAwareCacheAdapterForV3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(HubInterface $hub, TagAwareAdapterInterface $decorat
3838
*
3939
* @param mixed[] $metadata
4040
*/
41-
public function get($key, callable $callback, ?float $beta = null, ?array &$metadata = null)
41+
public function get(string $key, callable $callback, ?float $beta = null, ?array &$metadata = null): mixed
4242
{
4343
return $this->traceGet($key, $callback, $beta, $metadata);
4444
}

0 commit comments

Comments
 (0)