Skip to content

Commit

Permalink
[LOPS-1661] Php8.3 (#2517)
Browse files Browse the repository at this point in the history
* updated version number

* Linting

* bumpversion

* Semver wants three digits

* Update Changelog
  • Loading branch information
stovak committed Nov 29, 2023
1 parent fe4e3aa commit bd06590
Show file tree
Hide file tree
Showing 6 changed files with 138 additions and 135 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org)

## 3.2.3-dev
## 3.3.0 - 2023-11-28

- PHP 8.3 compatibility (#2555)
- Misc 8.2 deprecations


## 3.2.2 - 2023-09-28

Expand Down
16 changes: 8 additions & 8 deletions bin/terminus
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ if (version_compare(PHP_VERSION, '7.4.0', '<') === true) {
exit(1);
}

if (!getenv('TERMINUS_ALLOW_UNSUPPORTED_NEWER_PHP') && version_compare(PHP_VERSION, '8.3.0', '>=') === true) {
if (!getenv('TERMINUS_ALLOW_UNSUPPORTED_NEWER_PHP') && version_compare(PHP_VERSION, '8.4.0', '>=') === true) {
fwrite(STDERR, "\n");
fwrite(STDERR, 'PHP 8.3+ is not supported by this version of Terminus.' . "\n");
fwrite(STDERR, 'PHP 8.4+ is not supported by this version of Terminus.' . "\n");
fwrite(STDERR, 'Check for new versions at https://github.com/pantheon-systems/terminus/releases' . "\n");
fwrite(STDERR, "\n");
fwrite(STDERR, 'Set environment variable TERMINUS_ALLOW_UNSUPPORTED_NEWER_PHP to try continuing anyway.' . "\n");
Expand All @@ -32,7 +32,7 @@ if (!getenv('TERMINUS_ALLOW_UNSUPPORTED_NEWER_PHP') && version_compare(PHP_VERSI

// This variable is automatically managed via updateDependenciesversion() in /RoboFile.php,
// which is run after every call to composer update.
$terminusPluginsDependenciesVersion = '27e14f5059';
$terminusPluginsDependenciesVersion = 'f512ad328f';

// Cannot use $_SERVER superglobal since that's empty during phpunit testing
// getenv('HOME') isn't set on Windows and generates a Notice.
Expand All @@ -55,8 +55,8 @@ $pharPath = \Phar::running(true);
if ($pharPath) {
include_once("$pharPath/vendor/autoload.php");
} elseif (file_exists($path = __DIR__ . '/../vendor/autoload.php')
|| file_exists($path = __DIR__ . '/../../autoload.php')
|| file_exists($path = __DIR__ . '/../../../autoload.php')
|| file_exists($path = __DIR__ . '/../../autoload.php')
|| file_exists($path = __DIR__ . '/../../../autoload.php')
) {
include_once($path);
} else {
Expand All @@ -70,9 +70,9 @@ $home_tokens_folder = '.terminus' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SE
$tokens_dir = $home . DIRECTORY_SEPARATOR . $home_tokens_folder;
if (!is_dir($tokens_dir)) {
mkdir(
$tokens_dir,
0700,
true
$tokens_dir,
0700,
true
);
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"czproject/git-php": "^4.0",
"guzzlehttp/guzzle": "^7.0",
"justinrainbow/json-schema": "^5.2",
"league/container": "^3.4",
"league/container": "^3",
"monolog/monolog": "^2.2",
"psy/psysh": "^0.11.9",
"rogervila/array-diff-multidimensional": "^2.0",
Expand Down

0 comments on commit bd06590

Please sign in to comment.