Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Churilo committed Dec 16, 2021
1 parent 644a1e7 commit 7f9eb38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/terminus
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ if (version_compare(PHP_VERSION, '7.4.0', '<') === true) {
echo 'Upgrade to PHP 7.4 or newer to use Terminus 3. For PHP versions prior to 7.4, downgrade to Terminus 2.x.'; echo "\n\n";
exit(1);
} elseif (version_compare(PHP_VERSION, '8.1.0', '>=') === true) {
error_reporting(E_ALL ^ E_DEPRECATED);
if (!getenv('TERMINUS_ALLOW_UNSUPPORTED_NEWER_PHP')) {
echo "\n";
echo 'PHP 8.1+ is not supported by this version of Terminus.' . "\n";
Expand All @@ -26,6 +25,8 @@ if (version_compare(PHP_VERSION, '7.4.0', '<') === true) {
echo "Stopping.\n\n";
exit(1);
}

error_reporting(error_reporting() & ~E_DEPRECATED);
}

// This variable is automatically managed via updateDependenciesversion() in /RoboFile.php,
Expand Down

0 comments on commit 7f9eb38

Please sign in to comment.