This repository was archived by the owner on Feb 6, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Expand file tree Collapse file tree 4 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 10
10
/phpcs.xml export-ignore
11
11
/phpunit.xml.dist export-ignore
12
12
/test / export-ignore
13
+ /phpstan.neon.dist export-ignore
Original file line number Diff line number Diff line change 5
5
/vendor /
6
6
/zf-mkdoc-theme.tgz
7
7
/zf-mkdoc-theme /
8
+ /phpstan.neon
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ matrix:
22
22
- CS_CHECK=true
23
23
- BENCHMARKS=true
24
24
- TEST_COVERAGE=true
25
+ - PHPSTAN_TEST=true
25
26
- php : 7.1
26
27
env :
27
28
- DEPS=latest
@@ -43,12 +44,14 @@ install:
43
44
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
44
45
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
45
46
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
47
+ - if [[ $PHPSTAN_TEST == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $PHPSTAN_DEPS ; fi
46
48
- stty cols 120 && composer show
47
49
48
50
script :
49
51
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
50
52
- if [[ $BENCHMARKS == 'true' ]]; then vendor/bin/phpbench run --revs=2 --iterations=2 --report=aggregate ; fi
51
53
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
54
+ - if [[ $PHPSTAN_TEST == 'true' ]]; then ./vendor/bin/phpstan analyse --no-progress . ; fi
52
55
53
56
after_script :
54
57
- if [[ $TEST_COVERAGE == 'true' ]]; then vendor/bin/php-coveralls -v ; fi
Original file line number Diff line number Diff line change
1
+ parameters:
2
+ level: 7
3
+
4
+ fileExtensions:
5
+ - php
6
+
7
+ excludes_analyse:
8
+ - %currentWorkingDirectory%/benchmarks/*
9
+ - %currentWorkingDirectory%/bin/*
10
+ - %currentWorkingDirectory%/docs/*
11
+ - %currentWorkingDirectory%/test/*
12
+ - %currentWorkingDirectory%/vendor/*
13
+
14
+ ignoreErrors:
15
+ - "#Casting to [a-z]+ something that's already [a-z]+#"
16
+ - '#PHPDoc tag @throws with type Interop\\Container\\Exception\\ContainerException is not subtype of Throwable#'
17
+ - '#PHPDoc tag @throws with type ([\w\\\|]+\|)?Psr\\Container\\ContainerExceptionInterface(\|[\w\\\|]+)? is not subtype of Throwable#'
18
+ - '#Parameter \#2 \$search of function array_key_exists expects array, (array\|)?ArrayObject given#'
19
+ # AbstractPluginManager::__construct() accepts more types:
20
+ - '#Result of && is always false#'
You can’t perform that action at this time.
0 commit comments