File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ matrix:
21
21
- php : 7.2
22
22
- php : 7.3
23
23
- php : nightly
24
+ env : PHPSTAN=1
24
25
25
26
allow_failures :
26
27
- php : nightly
@@ -56,3 +57,5 @@ script:
56
57
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/PSR12/ruleset.xml <(xmllint --format "./src/Standards/PSR12/ruleset.xml"); fi
57
58
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Squiz/ruleset.xml <(xmllint --format "./src/Standards/Squiz/ruleset.xml"); fi
58
59
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Zend/ruleset.xml <(xmllint --format "./src/Standards/Zend/ruleset.xml"); fi
60
+ # Run PHPStan
61
+ - 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
Original file line number Diff line number Diff line change
1
+ parameters :
2
+ ignoreErrors :
3
+ -
4
+ message : ' ~^Undefined variable: \$phpCodeSnifferConfig$~'
5
+ path : %currentWorkingDirectory%/src/Config.php
6
+
7
+ dynamicConstantNames :
8
+ - PHP_CODESNIFFER_IN_TESTS
9
+ - PHP_CODESNIFFER_CBF
10
+ - PHP_CODESNIFFER_VERBOSITY
11
+
12
+ excludes_analyse :
13
+ - */Tests/*
You can’t perform that action at this time.
0 commit comments