Skip to content

Commit

Permalink
tec: Require PHP >= 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
marien-probesys committed Dec 1, 2023
1 parent 8d59c95 commit 1dc250f
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

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 @@ 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.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=8.1",
"php": ">=8.2",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-imap": "*",
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions docs/administrators/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1dc250f

Please sign in to comment.