From 1dc250f5c79dc701d103db7a55d20431d69e681b Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Fri, 1 Dec 2023 10:22:51 +0100 Subject: [PATCH] tec: Require PHP >= 8.2 --- .github/workflows/linters.yml | 2 +- .github/workflows/tests.yml | 4 ++-- CHANGELOG.md | 2 ++ README.md | 2 +- composer.json | 2 +- composer.lock | 4 ++-- docker/Dockerfile | 2 +- docs/administrators/deploy.md | 8 ++++---- 8 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index e5360889..2d4976e4 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-22.04] - php-versions: ['8.1', '8.2'] + php-versions: ['8.2', '8.3'] name: Lint PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b984c144..95045150 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,7 +22,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-22.04] - php-versions: ['8.1', '8.2'] + php-versions: ['8.2', '8.3'] services: postgres: @@ -72,7 +72,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-22.04] - php-versions: ['8.1', '8.2'] + php-versions: ['8.2', '8.3'] services: mariadb: diff --git a/CHANGELOG.md b/CHANGELOG.md index 313dd8f8..14d0f8bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ### Migration notes +Bileto now requires PHP 8.2+. + You need to set the new environment variable `APP_BASE_URL` in your `.env.local` file (see [env.sample](/env.sample)). This variable is used to generate absolute URLs in non-HTTP contexts (i.e. from the command line). diff --git a/README.md b/README.md index 6bcdd60e..e3e88f52 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ It is not advised to use Bileto in production yet. ![Screenshot of the tickets page of Bileto showing 3 opened tickets and a search form.](public/screenshot.webp) -It is written with [Symfony](https://symfony.com/) 6.3 and works with [PHP](https://www.php.net/) 8.1 or 8.2. +It is written with [Symfony](https://symfony.com/) 6.3 and works with [PHP](https://www.php.net/) 8.2 or 8.3. The supported databases are PostgreSQL >= 11 and MariaDB >= 10.4. It is developed by [Probesys](https://probesys.com) as a community project. diff --git a/composer.json b/composer.json index 1c9f662e..c4c7fe85 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "minimum-stability": "stable", "prefer-stable": true, "require": { - "php": ">=8.1", + "php": ">=8.2", "ext-ctype": "*", "ext-iconv": "*", "ext-imap": "*", diff --git a/composer.lock b/composer.lock index 7a81a0aa..e2b26e64 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ad8dc12b2e7b6f7889198a371085e239", + "content-hash": "d58848e96d60d70034a4f0aab1f89312", "packages": [ { "name": "doctrine/cache", @@ -10128,7 +10128,7 @@ "prefer-stable": true, "prefer-lowest": false, "platform": { - "php": ">=8.1", + "php": ">=8.2", "ext-ctype": "*", "ext-iconv": "*", "ext-imap": "*", diff --git a/docker/Dockerfile b/docker/Dockerfile index 9879c724..4f823edc 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,7 +2,7 @@ # Copyright 2022-2023 Probesys # SPDX-License-Identifier: AGPL-3.0-or-later -FROM php:8.1-fpm +FROM php:8.2-fpm ENV COMPOSER_HOME /tmp diff --git a/docs/administrators/deploy.md b/docs/administrators/deploy.md index 7f5225bb..c9592793 100644 --- a/docs/administrators/deploy.md +++ b/docs/administrators/deploy.md @@ -20,11 +20,11 @@ $ git --version git version 2.38.1 ``` -Check PHP version (must be >= 8.1): +Check PHP version (must be >= 8.2): ```console $ php --version -PHP 8.1.12 ... +PHP 8.2.13 ... ``` Check your database version. @@ -142,7 +142,7 @@ composer-runtime-api 2.2.2 success ext-ctype 8.1.10 success ... ext-zip 1.19.5 success -php 8.1.10 success +php 8.2.13 success ``` If requirements are not met, you’ll have to install the missing extensions. @@ -198,7 +198,7 @@ server { } location ~ ^/index\.php(/|$) { - fastcgi_pass unix:/run/php/php8.1-fpm.sock; + fastcgi_pass unix:/run/php/php8.2-fpm.sock; fastcgi_split_path_info ^(.+\.php)(/.*)$; include fastcgi_params;