Skip to content

Commit 5b264ee

Browse files
committed
wip
1 parent d4eae9d commit 5b264ee

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

src/Tracing/Cache/TraceableCacheAdapterForV3WithNamespace.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ final class TraceableCacheAdapterForV3WithNamespace implements AdapterInterface,
2424
*/
2525
use TraceableCacheAdapterTrait;
2626

27-
/**
28-
* @var string|null
29-
*/
30-
private $namespace;
31-
3227
/**
3328
* @param HubInterface $hub The current hub
3429
* @param AdapterInterface $decoratedAdapter The decorated cache adapter

src/Tracing/Cache/TraceableCacheAdapterTrait.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ trait TraceableCacheAdapterTrait
3434
*/
3535
private $decoratedAdapter;
3636

37+
/**
38+
* @var string|null
39+
*/
40+
protected $namespace;
41+
3742
/**
3843
* {@inheritdoc}
3944
*/
@@ -365,10 +370,6 @@ private function setCallbackWrapper(callable $callback, string $key): callable
365370
*/
366371
protected function getCacheNamespace(): ?string
367372
{
368-
if (!\property_exists($this, 'namespace')) {
369-
return null;
370-
}
371-
372373
return $this->namespace;
373374
}
374375
}

src/Tracing/Cache/TraceableTagAwareCacheAdapterForV3WithNamespace.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ final class TraceableTagAwareCacheAdapterForV3WithNamespace implements TagAwareA
2424
*/
2525
use TraceableCacheAdapterTrait;
2626

27-
/**
28-
* @var string|null
29-
*/
30-
private $namespace;
31-
3227
/**
3328
* @param HubInterface $hub The current hub
3429
* @param TagAwareAdapterInterface $decoratedAdapter The decorated cache adapter

0 commit comments

Comments
 (0)