Skip to content

Commit

Permalink
suppress PhpStan error for laminas-cache interfaces
Browse files Browse the repository at this point in the history
laminas-cache has change signatures from 3.6.0 to 3.8.0 by added the mixed type. This causes troubles for PhpStan, which identifies the mixed type being missing when executed with PHP 8.1. Ignoring these errors for now to keep compatibility with PHP 7.4.
  • Loading branch information
driehle committed Nov 18, 2022
1 parent c72eedf commit c7a2aaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ parameters:
paths:
- src
- tests
ignoreErrors:
-
message: '#internal(G|S)etItem\(\) has parameter \$(casToken|value) with no type specified#'
path: src/Cache/DoctrineCacheStorage.php
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
Expand Down

0 comments on commit c7a2aaf

Please sign in to comment.