Skip to content

Commit

Permalink
chore: use inline ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Jan 29, 2025
1 parent 3b2a5aa commit 1d077bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 0 additions & 9 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions src/Components/CacheAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Check failure on line 117 in src/Components/CacheAdapter.php

View workflow job for this annotation

GitHub Actions / PHPStan (v6.6.9.0) / Static Analyse

No error with identifier classConstant.deprecatedClass is reported on line 117.

Check failure on line 117 in src/Components/CacheAdapter.php

View workflow job for this annotation

GitHub Actions / PHPStan (trunk) / Static Analyse

No error with identifier classConstant.deprecatedClass is reported on line 117.
// Do not declare function as static
$func = \Closure::bind(fn() => $adapter->decorated, $adapter, $adapter::class);

Check failure on line 119 in src/Components/CacheAdapter.php

View workflow job for this annotation

GitHub Actions / PHPStan (v6.6.9.0) / Static Analyse

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

Check failure on line 119 in src/Components/CacheAdapter.php

View workflow job for this annotation

GitHub Actions / PHPStan (trunk) / Static Analyse

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
Expand Down

0 comments on commit 1d077bb

Please sign in to comment.