Skip to content

Commit 58c38b9

Browse files
committed
Bump PHP minimum version to 8.1.0
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
1 parent 113d4f5 commit 58c38b9

File tree

5 files changed

+15
-19
lines changed

5 files changed

+15
-19
lines changed

.github/workflows/lint-and-analyse-php.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
16-
- name: Use php 7.2
16+
- name: Use PHP 8.1
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: 7.2
20-
tools: composer:v2
19+
php-version: 8.1
2120
- name: Validate composer.json and composer.lock
2221
run: composer validate
2322
- name: Cache module
@@ -34,7 +33,7 @@ jobs:
3433
runs-on: ubuntu-latest
3534
strategy:
3635
matrix:
37-
php-version: ["7.4"]
36+
php-version: ["8.1"]
3837
steps:
3938
- uses: actions/checkout@v3
4039
- name: Use PHP ${{ matrix.php-version }}

.github/workflows/tests.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
continue-on-error: ${{ matrix.experimental }}
1616
strategy:
1717
matrix:
18-
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
18+
php-version: ["8.1", "8.2"]
1919
os: [ubuntu-latest]
2020
experimental: [false]
2121
composer-options: ['']
@@ -50,9 +50,6 @@ jobs:
5050
${{ runner.os }}-composer-
5151
- name: Install dependencies
5252
run: composer install --no-interaction ${{ matrix.composer-options }}
53-
- name: Install motranslator
54-
if: ${{ matrix.php-version == '7.2' }}
55-
run: composer require phpmyadmin/motranslator:^3.0 --with-all-dependencies --no-interaction
5653
- name: Run php tests
5754
run: composer run phpunit
5855
- name: Send coverage
@@ -70,7 +67,7 @@ jobs:
7067
continue-on-error: ${{ matrix.experimental }}
7168
strategy:
7269
matrix:
73-
php-version: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
70+
php-version: ["8.1", "8.2"]
7471
os: [ubuntu-latest]
7572
experimental: [false]
7673
composer-options: ['']
@@ -105,8 +102,5 @@ jobs:
105102
${{ runner.os }}-composer-
106103
- name: Install dependencies
107104
run: composer install --no-interaction ${{ matrix.composer-options }}
108-
- name: Install motranslator
109-
if: ${{ matrix.php-version == '7.2' }}
110-
run: composer require phpmyadmin/motranslator:^3.0 --with-all-dependencies --no-interaction
111105
- name: Run benchmarks
112106
run: composer run phpbench

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ build:
1717
nodes:
1818
analysis:
1919
environment:
20-
php: 7.2
20+
php: 8.1
2121
dependencies:
2222
before:
2323
- composer install

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## [6.0.x] - YYYY-MM-DD
4+
5+
* Drop support for PHP 7.2, 7.3, 7.4 and 8.0
6+
37
## [5.x.x] - YYYY-MM-DD
48

59
- Fix `ALTER EVENT RENAME TO` to use expression instead of var (#419)

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,24 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^7.2 || ^8.0",
26-
"symfony/polyfill-mbstring": "^1.3",
27-
"symfony/polyfill-php80": "^1.16"
25+
"php": "^8.1",
26+
"symfony/polyfill-mbstring": "^1.3"
2827
},
2928
"require-dev": {
3029
"phpbench/phpbench": "^1.1",
3130
"phpmyadmin/coding-standard": "^3.0",
32-
"phpmyadmin/motranslator": "^4.0 || ^5.0",
31+
"phpmyadmin/motranslator": "^5.0",
3332
"phpstan/extension-installer": "^1.1",
3433
"phpstan/phpstan": "^1.9.12",
3534
"phpstan/phpstan-phpunit": "^1.3.3",
3635
"phpunit/php-code-coverage": "*",
37-
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
36+
"phpunit/phpunit": "^9.6",
3837
"psalm/plugin-phpunit": "^0.16.1",
3938
"vimeo/psalm": "^4.11",
4039
"zumba/json-serializer": "^3.0"
4140
},
4241
"conflict": {
43-
"phpmyadmin/motranslator": "<3.0"
42+
"phpmyadmin/motranslator": "<5.0"
4443
},
4544
"suggest": {
4645
"ext-mbstring": "For best performance",

0 commit comments

Comments
 (0)