Skip to content

Commit 8db56ec

Browse files
authored
Merge pull request #825 from Automattic/feature/phpstan-fix
2 parents 72ec09b + 0b496da commit 8db56ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tests/RulesetTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ private function run() {
143143
*/
144144
private function collect_phpcs_result() {
145145
$php = '';
146-
if ( \PHP_BINARY && in_array( \PHP_SAPI, [ 'cgi-fcgi', 'cli', 'cli-server', 'phpdbg' ], true ) ) {
146+
if ( defined( 'PHP_BINARY' ) && in_array( \PHP_SAPI, [ 'cgi-fcgi', 'cli', 'cli-server', 'phpdbg' ], true ) ) {
147147
$php = \PHP_BINARY . ' ';
148148
}
149149

0 commit comments

Comments
 (0)