2021-03-09 14:49:40 +00:00
includes:
2022-04-29 09:10:21 +00:00
- ../vendor/phpstan/phpstan/conf/bleedingEdge.neon
2021-03-09 14:49:40 +00:00
- ../vendor/phpstan/phpstan-phpunit/extension.neon
2021-12-07 08:33:45 +00:00
- ../vendor/phpstan/phpstan-deprecation-rules/rules.neon
2021-12-07 11:50:03 +00:00
- ../vendor/phpstan/phpstan-strict-rules/rules.neon
2022-02-16 12:24:57 +00:00
- ../vendor/phpstan/phpstan-symfony/extension.neon
2024-07-25 14:28:25 +00:00
- ../vendor/composer/pcre/extension.neon
2022-02-16 12:24:57 +00:00
- ../vendor/phpstan/phpstan-symfony/rules.neon
2024-07-06 21:35:00 +00:00
# TODO when requiring php 7.4+ we can use this
#- ../vendor/staabm/phpstan-todo-by/extension.neon
2022-04-29 07:04:02 +00:00
- ./rules.neon # Composer-specific PHPStan extensions, can be reused by third party packages by including 'vendor/composer/composer/phpstan/rules.neon' in your phpstan config
2021-06-03 09:36:39 +00:00
- ./baseline.neon
2022-01-01 13:39:32 +00:00
- ./ignore-by-php-version.neon.php
2021-03-09 14:49:40 +00:00
2019-01-07 15:22:41 +00:00
parameters:
2021-12-07 11:50:03 +00:00
level: 8
2021-10-18 22:09:59 +00:00
2021-10-25 12:16:20 +00:00
excludePaths:
2019-12-08 01:38:22 +00:00
- '../tests/Composer/Test/Fixtures/*'
- '../tests/Composer/Test/Autoload/Fixtures/*'
2023-07-21 12:34:59 +00:00
- '../tests/Composer/Test/Autoload/MinimumVersionSupport/vendor/'
2019-12-08 01:38:22 +00:00
- '../tests/Composer/Test/Plugin/Fixtures/*'
2020-09-10 15:21:11 +00:00
- '../tests/Composer/Test/PolyfillTestCase.php'
2021-10-18 22:09:59 +00:00
reportUnmatchedIgnoredErrors: false
2022-02-23 16:57:03 +00:00
treatPhpDocTypesAsCertain: false
2024-05-27 15:11:31 +00:00
reportPossiblyNonexistentConstantArrayOffset: true
2021-10-18 22:09:59 +00:00
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\\Util\\Http\\CurlDownloader has an unused parameter \$disableTls\.$~'
- '~^Constructor of class Composer\\Util\\Http\\CurlDownloader has an unused parameter \$options\.$~'
2019-01-07 15:22:41 +00:00
# ion cube is not installed
- '~^Function ioncube_loader_\w+ not found\.$~'
# variables from global scope
- '~^Undefined variable: \$vendorDir$~'
- '~^Undefined variable: \$baseDir$~'
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
2021-10-18 22:04:49 +00:00
# Ignore some irrelevant errors in test files
2022-02-21 12:49:26 +00:00
- '~Method Composer\\Test\\[^:]+::(data\w+|provide\w+|\w+?Provider)\(\) (has no return type specified.|return type has no value type specified in iterable type array.)~'
2021-08-29 18:07:50 +00:00
2021-12-07 11:50:03 +00:00
# PHPUnit assertions as instance methods
- '~Dynamic call to static method PHPUnit\\Framework\\Assert::\w+\(\)~'
2021-12-09 21:14:04 +00:00
- '~Dynamic call to static method PHPUnit\\Framework\\TestCase::(once|atLeast|exactly|will|exactly|returnValue|returnCallback|any|atLeastOnce|throwException|onConsecutiveCalls|never|returnValueMap)\(\)~'
2021-12-07 11:50:03 +00:00
2021-02-25 09:49:16 +00:00
bootstrapFiles:
- ../tests/bootstrap.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
2022-02-16 12:24:57 +00:00
symfony:
consoleApplicationLoader: ../tests/console-application.php
2021-08-21 15:41:52 +00:00
dynamicConstantNames:
- Composer\Composer::BRANCH_ALIAS_VERSION
- Composer\Composer::VERSION
- Composer\Composer::RELEASE_DATE
- Composer\Composer::SOURCE_VERSION