Skip to content

Commit 57f0d7d

Browse files
Temporarily make php version check more lax
1 parent 7c775a8 commit 57f0d7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/terminus.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// Unset memory limit
1313
ini_set('memory_limit', -1);
1414

15-
if (version_compare(PHP_VERSION, '8.2.0', '<') === true) {
15+
-if (version_compare(PHP_VERSION, '7.4.0', '<') === true) {
1616
fwrite(STDERR, "\n");
1717
fwrite(STDERR, 'Sorry, your PHP version (' . PHP_VERSION . ') is no longer supported.' . "\n");
18-
fwrite(STDERR, 'Upgrade to PHP 8.2 or newer to use Terminus 4. For PHP versions prior to 8.2, downgrade to Terminus 3.x.' . "\n\n");
18+
fwrite(STDERR, 'Upgrade to PHP 7.4 or newer to use Terminus 4. For PHP versions prior to 7.4, downgrade to Terminus 2.x.' . "\n\n");
1919
fwrite(STDERR, 'For more information, see https://pantheon.io/docs/terminus/updates#php-version-compatibility-matrix' . "\n\n");
2020
exit(1);
2121
}

0 commit comments

Comments
 (0)