diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 639f77e..81c2d44 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -7,12 +7,3 @@ parameters: - message: "#^Out of .* possible param types, only .* %% actually have it\\. Add more param types to get over .* %%$#" reportUnmatched: false - - - - message: """ - #^Fetching class constant class of deprecated class Shopware\\\\Core\\\\Framework\\\\Adapter\\\\Cache\\\\CacheDecorator\\: - tag\\:v6\\.7\\.0 \\- reason\\:decoration\\-will\\-be\\-removed \\- Will be removed$# - """ - reportUnmatched: false - count: 1 - path: src/Components/CacheAdapter.php diff --git a/src/Components/CacheAdapter.php b/src/Components/CacheAdapter.php index be17d82..2a67b58 100644 --- a/src/Components/CacheAdapter.php +++ b/src/Components/CacheAdapter.php @@ -113,6 +113,7 @@ public function getType(): string private function getCacheAdapter(AdapterInterface $adapter): AdapterInterface { // will be removed in Shopware 6.7 + // @phpstan-ignore classConstant.deprecatedClass if ($adapter instanceof CacheDecorator) { // Do not declare function as static $func = \Closure::bind(fn() => $adapter->decorated, $adapter, $adapter::class);