File tree Expand file tree Collapse file tree 6 files changed +411
-649
lines changed Expand file tree Collapse file tree 6 files changed +411
-649
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ before_script:
1212script :
1313 - ./vendor/bin/phpunit.phar -c ./phpunit.xml --debug --verbose
1414 - ./vendor/bin/phpmd-extension.phar ./src/ text phpmd.xml
15+ - ./vendor/bin/phpstan analyse -l 4 ./src/
Original file line number Diff line number Diff line change @@ -28,3 +28,9 @@ Run each command in the project root directory.
2828```
2929./vendor/bin/phpmd-extension.phar ./src/ text phpmd.xml
3030```
31+
32+ ### Execute PHPSTAN checks
33+
34+ ```
35+ ./vendor/bin/phpstan analyse -l 4 src/
36+ ```
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class EnumFixture extends Enum
1515 /**
1616 * @return string
1717 */
18- protected function getDefault () : string
18+ protected function getDefault (): string
1919 {
2020 return self ::TEST_DEFAULT ;
2121 }
Original file line number Diff line number Diff line change 99 }
1010 },
1111 "require" : {
12- "php" : " >=7.0"
12+ "php" : " >=7.0" ,
13+ "phpstan/phpstan" : " 0.4.1"
1314 },
1415 "autoload-dev" : {
1516 "psr-4" : {
1819 }
1920 },
2021 "require-dev" : {
21- "tm/tooly-composer-script" : " 1.2.1" ,
22- "mi-schi/php-code-checker" : " 2.2.10"
22+ "tm/tooly-composer-script" : " 1.2.1"
2323 },
2424 "scripts" : {
2525 "post-install-cmd" : " Tooly\\ ScriptHandler::installPharTools" ,
3131 "url" : " https://phar.phpunit.de/phpunit.phar" ,
3232 "force-replace" : true
3333 },
34- "phpcpd" : {
35- "url" : " https://phar.phpunit.de/phpcpd.phar" ,
36- "force-replace" : true
37- },
38- "php_codesniffer" : {
39- "url" : " https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar" ,
40- "force-replace" : true
41- },
42- "phpmetrics" : {
43- "url" : " https://github.com/phpmetrics/PhpMetrics/raw/master/build/phpmetrics.phar" ,
44- "force-replace" : true
45- },
4634 "phpmd-extension" : {
4735 "url" : " https://github.com/mi-schi/phpmd-extension/releases/download/stable/phpmd-extension.phar" ,
4836 "force-replace" : true
You can’t perform that action at this time.
0 commit comments