2019-01-07 15:22:41 +00:00
|
|
|
parameters:
|
2020-04-07 12:13:50 +00:00
|
|
|
level: 1
|
2019-12-10 15:56:04 +00:00
|
|
|
autoload_files:
|
2019-12-08 01:38:22 +00:00
|
|
|
- autoload.php
|
2019-01-07 15:22:41 +00:00
|
|
|
excludes_analyse:
|
2019-12-08 01:38:22 +00:00
|
|
|
- '../tests/Composer/Test/Fixtures/*'
|
|
|
|
- '../tests/Composer/Test/Autoload/Fixtures/*'
|
|
|
|
- '../tests/Composer/Test/Plugin/Fixtures/*'
|
2019-01-07 15:22:41 +00:00
|
|
|
ignoreErrors:
|
2020-04-07 12:13:50 +00:00
|
|
|
# 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\.$~'
|
|
|
|
|
2019-01-07 15:22:41 +00:00
|
|
|
# ion cube is not installed
|
|
|
|
- '~^Function ioncube_loader_\w+ not found\.$~'
|
2020-04-07 12:13:50 +00:00
|
|
|
# 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'
|
2019-01-07 15:22:41 +00:00
|
|
|
|
|
|
|
# variables from global scope
|
|
|
|
- '~^Undefined variable: \$vendorDir$~'
|
|
|
|
- '~^Undefined variable: \$baseDir$~'
|
|
|
|
|
2019-02-18 12:03:34 +00:00
|
|
|
# variable defined in eval
|
|
|
|
- '~^Undefined variable: \$res$~'
|
|
|
|
|
2019-12-08 01:38:22 +00:00
|
|
|
# we don't have different constructors for parent/child
|
|
|
|
- '~^Unsafe usage of new static\(\)\.$~'
|
2019-12-10 21:31:07 +00:00
|
|
|
|
2020-02-07 22:10:10 +00:00
|
|
|
# BC with older PHPUnit
|
|
|
|
- '~^Call to an undefined static method PHPUnit\\Framework\\TestCase::setExpectedException\(\)\.$~'
|
|
|
|
|
2019-12-10 21:31:07 +00:00
|
|
|
# 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'
|
2019-12-10 15:56:04 +00:00
|
|
|
paths:
|
2019-12-08 01:38:22 +00:00
|
|
|
- ../src
|
|
|
|
- ../tests
|
2019-12-10 21:31:07 +00:00
|
|
|
|
|
|
|
rules:
|
|
|
|
- Composer\PHPStanRules\AnonymousFunctionWithThisRule
|