Skip to content

Commit

Permalink
Temporarily make php version check more lax
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Dec 18, 2024
1 parent 7c775a8 commit 57f0d7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/terminus.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
// Unset memory limit
ini_set('memory_limit', -1);

if (version_compare(PHP_VERSION, '8.2.0', '<') === true) {
-if (version_compare(PHP_VERSION, '7.4.0', '<') === true) {
fwrite(STDERR, "\n");
fwrite(STDERR, 'Sorry, your PHP version (' . PHP_VERSION . ') is no longer supported.' . "\n");
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");
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");
fwrite(STDERR, 'For more information, see https://pantheon.io/docs/terminus/updates#php-version-compatibility-matrix' . "\n\n");
exit(1);
}
Expand Down

0 comments on commit 57f0d7d

Please sign in to comment.