2021-11-28 17:43:02 +01:00
|
|
|
includes:
|
2021-12-29 00:09:34 +01:00
|
|
|
- qa/PHPStan/valinor-phpstan-configuration.php
|
2021-11-28 17:43:02 +01:00
|
|
|
- vendor/phpstan/phpstan-strict-rules/rules.neon
|
2022-02-19 15:27:30 +01:00
|
|
|
- vendor/phpstan/phpstan-phpunit/extension.neon
|
2021-11-28 17:43:02 +01:00
|
|
|
|
2022-01-07 19:11:49 +01:00
|
|
|
rules:
|
|
|
|
- CuyZ\Valinor\QA\PHPStan\Extension\ApiAndInternalAnnotationCheck
|
|
|
|
|
2021-11-28 17:43:02 +01:00
|
|
|
parameters:
|
|
|
|
level: max
|
|
|
|
paths:
|
|
|
|
- src
|
|
|
|
- tests
|
2021-12-29 00:09:34 +01:00
|
|
|
- qa/PHPStan
|
2021-11-28 17:43:02 +01:00
|
|
|
ignoreErrors:
|
|
|
|
# \PHPStan\Rules\BooleansInConditions
|
|
|
|
- '#Only booleans are allowed in .* given#'
|
|
|
|
# \PHPStan\Rules\DisallowedConstructs\DisallowedShortTernaryRule
|
|
|
|
- '#Short ternary operator is not allowed\. Use null coalesce operator if applicable or consider using long ternary\.#'
|
|
|
|
# \PHPStan\Rules\DisallowedConstructs\DisallowedEmptyRule
|
|
|
|
- '#Construct empty\(\) is not allowed\. Use more strict comparison\.#'
|
|
|
|
|
|
|
|
- '#Method [\w\\:]+_data_provider\(\) return type has no value type specified in iterable type#'
|
2021-12-29 00:09:34 +01:00
|
|
|
|
|
|
|
- message: '#Template type T of method CuyZ\\Valinor\\Mapper\\TreeMapper::map\(\) is not referenced in a parameter#'
|
|
|
|
path: src/Mapper/TreeMapper.php
|
|
|
|
|
2021-11-28 17:43:02 +01:00
|
|
|
stubFiles:
|
2021-12-29 00:09:34 +01:00
|
|
|
- qa/PHPStan/Stubs/Psr/SimpleCache/CacheInterface.stub
|
2021-11-28 17:43:02 +01:00
|
|
|
tmpDir: var/cache/phpstan
|