1
0
Fork 0

Enhancement: Configure paths and autoload files via phpstan/config.neon

pull/8476/head
Andreas Möller 2019-12-10 16:56:04 +01:00
parent f6b3f12107
commit 48023e9511
No known key found for this signature in database
GPG Key ID: 9FB20A0BAF60E11F
2 changed files with 6 additions and 1 deletions

View File

@ -65,7 +65,7 @@ script:
# Run PHPStan # Run PHPStan
- if [[ $PHPSTAN == "1" ]]; then - if [[ $PHPSTAN == "1" ]]; then
bin/composer require --dev phpstan/phpstan-shim:^0.11 --ignore-platform-reqs && bin/composer require --dev phpstan/phpstan-shim:^0.11 --ignore-platform-reqs &&
vendor/bin/phpstan.phar analyse src tests --configuration=phpstan/config.neon --autoload-file=phpstan/autoload.php; vendor/bin/phpstan.phar analyse --configuration=phpstan/config.neon;
fi fi
before_deploy: before_deploy:

View File

@ -1,4 +1,6 @@
parameters: parameters:
autoload_files:
- phpstan/autoload.php
level: 0 level: 0
excludes_analyse: excludes_analyse:
- 'tests/Composer/Test/Fixtures' - 'tests/Composer/Test/Fixtures'
@ -39,3 +41,6 @@ parameters:
# parent call in test mocks # parent call in test mocks
- '~^Composer\\Test\\Mock\\HttpDownloaderMock::__construct\(\) does not call parent constructor from Composer\\Util\\HttpDownloader\.$~' - '~^Composer\\Test\\Mock\\HttpDownloaderMock::__construct\(\) does not call parent constructor from Composer\\Util\\HttpDownloader\.$~'
- '~^Composer\\Test\\Mock\\InstallationManagerMock::__construct\(\) does not call parent constructor from Composer\\Installer\\InstallationManager\.$~' - '~^Composer\\Test\\Mock\\InstallationManagerMock::__construct\(\) does not call parent constructor from Composer\\Installer\\InstallationManager\.$~'
paths:
- src
- tests