File tree Expand file tree Collapse file tree 4 files changed +35
-2
lines changed
Expand file tree Collapse file tree 4 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 4646 CI_PHP_VERSION : ${{ matrix.php-version }}
4747 CI_PHP_FUTURE_RELEASE : ${{ matrix.future-release }}
4848
49- - name : Static analysis
49+ - name : Static analysis - Psalm
5050 run : ' vendor/bin/psalm --config="tests/psalm.xml"'
5151 # TODO: Remove exclusion that skips running psalm on PHP 8.4 when psalm
5252 # supports PHP 8.4 (https://github.com/vimeo/psalm/issues/11107).
53- if : ${{ !matrix.future-release && matrix.php-version < 8.4 }}
53+ if : ${{ matrix.php-version < 8.4 }}
54+
55+ - name : Static analysis - PHPStan
56+ run : ' vendor/bin/phpstan analyse --configuration="phpstan.neon" .'
57+ if : ${{ matrix.php-version >= 7.4 }}
Original file line number Diff line number Diff line change 2727 "friendsofphp/php-cs-fixer" : " *" ,
2828 "phpcompatibility/php-compatibility" : " dev-develop" ,
2929 "phpcsstandards/phpcsutils" : " @alpha" ,
30+ "phpstan/phpstan" : " *" ,
3031 "phpunit/phpunit" : " *" ,
3132 "squizlabs/php_codesniffer" : " *"
3233 },
Original file line number Diff line number Diff line change 1+ parameters :
2+ ignoreErrors :
3+ -
4+ message : ' #^Class CurlHandle not found\.$#'
5+ identifier : class.notFound
6+ count : 2
7+ path : src/Curl/Curl.php
8+
9+ -
10+ message : ' #^Class CurlMultiHandle not found\.$#'
11+ identifier : class.notFound
12+ count : 2
13+ path : src/Curl/MultiCurl.php
Original file line number Diff line number Diff line change 1+ includes :
2+ - phpstan-baseline.neon
3+
4+ parameters :
5+ reportUnmatchedIgnoredErrors : false
6+
7+ # TODO: Increase rule level to be more strict.
8+ level : 0
9+
10+ # TODO: Remove all exclusions except vendor/ and fix related errors.
11+ excludePaths :
12+ - examples/*
13+ - tests/*
14+ - vendor/*
15+ - www/*
You can’t perform that action at this time.
0 commit comments