Skip to content

Commit

Permalink
Allow php74 to work after dependencies update
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Dec 18, 2024
1 parent 57f0d7d commit 7bb1017
Show file tree
Hide file tree
Showing 4 changed files with 587 additions and 684 deletions.
2 changes: 1 addition & 1 deletion bin/terminus
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"

TERMINUS_EXECUTABLE="$COMPOSER_RUNTIME_BIN_DIR/terminus.php"
TERMINUS_EXECUTABLE="$SCRIPTPATH/terminus.php"

# If we can't find `terminus.php` next to `terminus`,
# look for `terminus.php` in the same directory.
Expand Down
2 changes: 1 addition & 1 deletion bin/terminus.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// Unset memory limit
ini_set('memory_limit', -1);

-if (version_compare(PHP_VERSION, '7.4.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 7.4 or newer to use Terminus 4. For PHP versions prior to 7.4, downgrade to Terminus 2.x.' . "\n\n");
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"preferred-install": "dist",
"sort-packages": true,
"platform": {
"php": "8.2.26"
"php": "7.4.28"
},
"allow-plugins": {
"phpstan/extension-installer": true
Expand Down
Loading

0 comments on commit 7bb1017

Please sign in to comment.