1
0
Fork 0
composer/phpstan/config.neon

34 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-01-07 15:22:41 +00:00
parameters:
autoload_files:
2019-12-08 01:38:22 +00:00
- autoload.php
2019-01-07 15:22:41 +00:00
level: 0
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:
# ion cube is not installed
- '~^Function ioncube_loader_\w+ not found\.$~'
# variables from global scope
- '~^Undefined variable: \$vendorDir$~'
- '~^Undefined variable: \$baseDir$~'
# 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\(\)\.$~'
# 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:
2019-12-08 01:38:22 +00:00
- ../src
- ../tests
rules:
- Composer\PHPStanRules\AnonymousFunctionWithThisRule