Skip to content

Commit bac5176

Browse files
committed
rector env var might be empty -> ignore
1 parent 2658641 commit bac5176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_test/rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
$rectorConfig->cacheDirectory(__DIR__ . '/.rector-cache');
6464

6565
// supported minimum PHP version can be overridden by environment variable
66-
[$major, $minor] = explode('.', $_SERVER['RECTOR_MIN_PHP'] ?? '7.4');
66+
[$major, $minor] = explode('.', $_SERVER['RECTOR_MIN_PHP'] ?? '' ?: '7.4');
6767
$phpset = LevelSetList::class . '::UP_TO_PHP_' . $major . $minor;
6868
echo "Using PHP set $phpset\n";
6969

0 commit comments

Comments
 (0)