123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- parameters:
- level: 1
- autoload_files:
- - autoload.php
- excludes_analyse:
- - '../tests/Composer/Test/Fixtures/*'
- - '../tests/Composer/Test/Autoload/Fixtures/*'
- - '../tests/Composer/Test/Plugin/Fixtures/*'
- ignoreErrors:
- # unused parameters
- - '~^Constructor of class Composer\\Repository\\VcsRepository has an unused parameter \$dispatcher\.$~'
- - '~^Constructor of class Composer\\Repository\\PearRepository has an unused parameter \$dispatcher\.$~'
- - '~^Constructor of class Composer\\Util\\Http\\CurlDownloader has an unused parameter \$disableTls\.$~'
- - '~^Constructor of class Composer\\Util\\Http\\CurlDownloader has an unused parameter \$options\.$~'
- - '~^Constructor of class Composer\\Repository\\PearRepository has an unused parameter \$config\.$~'
- # ion cube is not installed
- - '~^Function ioncube_loader_\w+ not found\.$~'
- # rar is not installed
- - '~^Call to static method open\(\) on an unknown class RarArchive\.$~'
- # imagick is not installed
- - '~^Instantiated class Imagick not found\.$~'
- # windows specific constants
- -
- message: '~^Constant PHP_WINDOWS_VERSION_MAJOR not found\.$~'
- path: '*/src/Composer/Downloader/PathDownloader.php'
- -
- message: '~^Constant PHP_WINDOWS_VERSION_MINOR not found\.$~'
- path: '*/src/Composer/Downloader/PathDownloader.php'
- # variables from global scope
- - '~^Undefined variable: \$vendorDir$~'
- - '~^Undefined variable: \$baseDir$~'
- # variable defined in eval
- - '~^Undefined variable: \$res$~'
- # 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
- message: '~^Using \$this inside anonymous function is prohibited because of PHP 5\.3 support\.$~'
- path: '../tests/Composer/Test/Repository/PlatformRepositoryTest.php'
- paths:
- - ../src
- - ../tests
- rules:
- - Composer\PHPStanRules\AnonymousFunctionWithThisRule
|