Skip to content

Commit

Permalink
Increase PHP version requirement to 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Dec 27, 2024
1 parent 03a53f1 commit 65c59a1
Show file tree
Hide file tree
Showing 7 changed files with 455 additions and 389 deletions.
2 changes: 1 addition & 1 deletion .platform.app.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: app
type: php:7.4
type: php:8.2

dependencies:
php:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-cli
FROM php:8.2-cli

ARG USER_ID
ARG GROUP_ID
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For manual installation, you can also [download the latest binaries](https://git

_This installation method is considered legacy and is discouraged, use one of the methods above instead. Starting with version 5.x, this installation method will not be supported._

In order to use the Legacy installer, you need to have an operating system supported by PHP (Linux, OS X, or Windows) and PHP 5.5.9 or higher, with the following extensions: `curl`, `json`, `pcre`, and `phar`.
In order to use the Legacy installer, you need to have an operating system supported by PHP (Linux, OS X, or Windows) and PHP 8.2 or higher, with the following extensions: `curl`, `json`, `pcre`, and `phar`.

Run this command to install the CLI using the legacy installer, given that you have PHP already installed:

Expand Down
4 changes: 2 additions & 2 deletions bin/platform
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ ini_set('log_errors', '0');
// Disable early deprecation notices, e.g. those relating to Symfony Console.
error_reporting(E_ALL & ~E_DEPRECATED);

if (version_compare(PHP_VERSION, '5.5.9', '<')) {
printf("This tool requires at least PHP 5.5.9. You currently have %s installed. Please upgrade your PHP version.\n", PHP_VERSION);
if (version_compare(PHP_VERSION, '8.2', '<')) {
printf("This tool requires at least PHP 8.2. You currently have %s installed. Please upgrade your PHP version.\n", PHP_VERSION);
exit(1);
}

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Platform.sh CLI",
"license": "MIT",
"require": {
"php": ">=5.5.9",
"php": ">=8.2",
"doctrine/cache": "~1.5",
"guzzlehttp/guzzle": "^5.3",
"guzzlehttp/ringphp": "^1.1",
Expand Down Expand Up @@ -58,7 +58,7 @@
],
"config": {
"platform": {
"php": "5.5.9"
"php": "8.2"
}
},
"scripts": {
Expand Down
Loading

0 comments on commit 65c59a1

Please sign in to comment.