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 +26
-0
lines changed Expand file tree Collapse file tree 4 files changed +26
-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 10
10
global :
11
11
- COMPOSER_ARGS="--no-interaction --no-plugins"
12
12
- COVERAGE_DEPS="satooshi/php-coveralls"
13
+ - PHPSTAN_DEPS="phpstan/phpstan:^0.10.3"
13
14
14
15
matrix :
15
16
include :
@@ -30,6 +31,7 @@ matrix:
30
31
env :
31
32
- DEPS=locked
32
33
- LEGACY_DEPS="ocramius/proxy-manager phpbench/phpbench phpunit/phpunit"
34
+ - PHPSTAN_TEST=true
33
35
- php : 7
34
36
env :
35
37
- DEPS=latest
@@ -64,12 +66,14 @@ install:
64
66
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
65
67
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
66
68
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
69
+ - if [[ $PHPSTAN_TEST == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $PHPSTAN_DEPS ; fi
67
70
- stty cols 120 && composer show
68
71
69
72
script :
70
73
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
71
74
- if [[ $BENCHMARKS == 'true' ]]; then vendor/bin/phpbench run --revs=2 --iterations=2 --report=aggregate ; fi
72
75
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
76
+ - if [[ $PHPSTAN_TEST == 'true' ]]; then ./vendor/bin/phpstan analyse --no-progress . ; fi
73
77
74
78
after_script :
75
79
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; 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