Skip to content

Commit 1ae68b2

Browse files
szepeviktorandig
authored andcommitted
Minor code cleanup (php-pm#353)
* Use phpstan level 4 * Fix $errorLogger's types * Fix $phpCgiExecutable's default value
1 parent 795c05b commit 1ae68b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ install:
1515

1616
script:
1717
# Static analyzer check
18-
- if [ $TRAVIS_PHP_VERSION = '7.1' ]; then composer require "phpstan/phpstan:^0.9" && ./vendor/bin/phpstan analyze -c .phpstan.neon --level=2 --no-progress src;fi
18+
- if [ $TRAVIS_PHP_VERSION = '7.1' ]; then composer require "phpstan/phpstan:^0.9" && ./vendor/bin/phpstan analyze -c .phpstan.neon --level=4 --no-progress src;fi
1919
# Check the code style
2020
- if [ $TRAVIS_PHP_VERSION = '7.1' ]; then IFS=$'\n'; COMMIT_SCA_FILES=($(git diff --name-only --diff-filter=ACMRTUXB "${TRAVIS_COMMIT_RANGE}")); unset IFS; fi
2121
- if [ $TRAVIS_PHP_VERSION = '7.1' ]; then composer require "friendsofphp/php-cs-fixer:^2.8" && ./vendor/bin/php-cs-fixer fix --config=.php_cs.php -v --dry-run --stop-on-violation --using-cache=no --path-mode=intersection -- "${COMMIT_SCA_FILES[@]}";fi

src/ProcessManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class ProcessManager
140140
*
141141
* @var string
142142
*/
143-
protected $phpCgiExecutable = false;
143+
protected $phpCgiExecutable = '';
144144

145145
/**
146146
* @var null|int

src/ProcessSlave.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class ProcessSlave
8484
protected $inShutdown = false;
8585

8686
/**
87-
* @var BufferingLogger
87+
* @var BufferingLogger|\Symfony\Component\Debug\BufferingLogger
8888
*/
8989
protected $errorLogger;
9090

0 commit comments

Comments
 (0)