Skip to content

Commit 2af571e

Browse files
committed
chore: ignore deprecated class CacheDecorator
1 parent 2fb2b87 commit 2af571e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

phpstan.neon.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@ parameters:
77
-
88
message: "#^Out of .* possible param types, only .* %% actually have it\\. Add more param types to get over .* %%$#"
99
reportUnmatched: false
10+
11+
-
12+
message: """
13+
#^Fetching class constant class of deprecated class Shopware\\\\Core\\\\Framework\\\\Adapter\\\\Cache\\\\CacheDecorator\\:
14+
tag\\:v6\\.7\\.0 \\- reason\\:decoration\\-will\\-be\\-removed \\- Will be removed$#
15+
"""
16+
count: 1
17+
path: custom/static-plugins/FroshTools/src/Components/CacheAdapter.php

src/Components/CacheAdapter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ public function getType(): string
112112

113113
private function getCacheAdapter(AdapterInterface $adapter): AdapterInterface
114114
{
115+
// will be removed in Shopware 6.7
115116
if ($adapter instanceof CacheDecorator) {
116117
// Do not declare function as static
117118
$func = \Closure::bind(fn() => $adapter->decorated, $adapter, $adapter::class);

0 commit comments

Comments
 (0)