Skip to content

Commit 848011a

Browse files
committed
updated phpstan to 0.12 & moved configuration from cli to file
1 parent 279a616 commit 848011a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ script:
8181
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Squiz/ruleset.xml <(xmllint --format "./src/Standards/Squiz/ruleset.xml"); fi
8282
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Zend/ruleset.xml <(xmllint --format "./src/Standards/Zend/ruleset.xml"); fi
8383
# Run PHPStan
84-
- if [[ $PHPSTAN == "1" ]]; then composer require --dev phpstan/phpstan && php vendor/bin/phpstan analyse src --level=0 --configuration=phpstan.neon --autoload-file=tests/bootstrap.php; fi
84+
- if [[ $PHPSTAN == "1" ]]; then composer require --dev phpstan/phpstan && php vendor/bin/phpstan analyse --configuration=phpstan.neon; fi

phpstan.neon

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
parameters:
2+
level: 0
3+
paths:
4+
- src
5+
autoload_files:
6+
- tests/bootstrap.php
27
ignoreErrors:
38
-
9+
count: 1
410
message: '~^Undefined variable: \$phpCodeSnifferConfig$~'
511
path: %currentWorkingDirectory%/src/Config.php
612

713
dynamicConstantNames:
814
- PHP_CODESNIFFER_IN_TESTS
915
- PHP_CODESNIFFER_CBF
1016
- PHP_CODESNIFFER_VERBOSITY
11-
12-
excludes_analyse:
13-
- */Tests/*

0 commit comments

Comments
 (0)