We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da604d6 commit 8eb6183Copy full SHA for 8eb6183
bin/terminus
@@ -9,6 +9,20 @@
9
* - Exits with a status code
10
*/
11
12
+// Version compatibility check and messaging
13
+if (version_compare(PHP_VERSION, '5.5.0', '<') === true) {
14
+ echo "\n";
15
+ echo 'Sorry, your PHP version (' . PHP_VERSION . ') is no longer supported.' . "\n";
16
+ echo 'Upgrade to PHP 5.5 or newer to use Terminus'; echo "\n\n";
17
+ exit(1);
18
+} elseif (version_compare(PHP_VERSION, '8.0', '>=') === true) {
19
20
+ echo 'PHP 8.0+ is not supported by this version of Terminus.' . "\n";
21
+ echo 'Upgrade to Terminus 3 for PHP 8+ support.' . "\n";
22
23
24
+}
25
+
26
$pharPath = \Phar::running(true);
27
if ($pharPath) {
28
include_once("$pharPath/vendor/autoload.php");
0 commit comments