Skip to content

Commit 56e985d

Browse files
Check for attempts at using old versions of PHP, and fail fast with an error.
1 parent 6687c21 commit 56e985d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/3x.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Terminus 3.x
1+
name: Terminus 4.x
22
on:
33
push:
44
schedule:

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ A PHAR file must also be built before running tests.
7575

7676
The functional test files are in the `tests/Functional` directory.
7777

78-
The Terminus 3.x functional tests can be run via:
78+
The Terminus 4.x functional tests can be run via:
7979

8080
```bash
8181
cd /install/location/terminus

bin/terminus

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, '7.4.0', '<') === true) {
15+
if (version_compare(PHP_VERSION, '8.2.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 7.4 or newer to use Terminus 3. For PHP versions prior to 7.4, downgrade to Terminus 2.x.' . "\n\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");
1919
fwrite(STDERR, 'For more information, see https://pantheon.io/docs/terminus/updates#php-version-compatibility-matrix' . "\n\n");
2020
exit(1);
2121
}

src/Commands/Self/Plugin/InstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function migrate()
7979
return;
8080
}
8181

82-
// Get installed Terminus 3 plugins.
82+
// Get installed Terminus 4 plugins.
8383
$plugins = $this->getPluginProjects();
8484
$t3projects = array_filter(
8585
array_map(

0 commit comments

Comments
 (0)