Skip to content

Commit

Permalink
chore: ignore deprecated class CacheDecorator
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Jan 29, 2025
1 parent 2fb2b87 commit b34bba0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ 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
1 change: 1 addition & 0 deletions src/Components/CacheAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ public function getType(): string

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

0 comments on commit b34bba0

Please sign in to comment.