1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

PHPStan fixes

This commit is contained in:
Jordi Boggiano 2020-02-07 23:10:10 +01:00
parent fbba175874
commit 589abb06a3
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
4 changed files with 11 additions and 5 deletions

View file

@ -17,9 +17,15 @@ parameters:
# variable defined in eval
- '~^Undefined variable: \$res$~'
# erroneous detection of missing const, see https://github.com/phpstan/phpstan/issues/2960
- '~^Access to undefined constant ZipArchive::OPSYS_UNIX.$~'
# we don't have different constructors for parent/child
- '~^Unsafe usage of new static\(\)\.$~'
# BC with older PHPUnit
- '~^Call to an undefined static method PHPUnit\\Framework\\TestCase::setExpectedException\(\)\.$~'
# hhvm should have support for $this in closures
-
count: 1