Skip to content

Commit 910f7cf

Browse files
authored
Test against PHP 8.2 - 8.5 + drop PHP < 8.2 (#23)
* PHP 8.4: avoid usage of deprecated constant E_STRICT * Bump actions/checkout version to 6 * Test against PHP 8.2 - 8.5 * Drop support for PHP < 8.2
1 parent 0fd78cf commit 910f7cf

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@ jobs:
88

99
strategy:
1010
matrix:
11-
php: [8.0, 8.1]
11+
php: [8.2, 8.3, 8.4, 8.5]
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v6
1616

1717
- name: Setup PHP
1818
uses: shivammathur/setup-php@v2
1919
with:
2020
php-version: ${{ matrix.php }}
2121
coverage: none
22+
# this ini directive seems to be off by default in PHP 8.5
23+
# see https://github.com/php/php-src/issues/20279
24+
# enable it because codeception relies on it.
25+
ini-values: register_argc_argv=1
2226

2327
- name: Validate composer.json and composer.lock
2428
run: composer validate

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"homepage": "https://codeception.com/",
1919
"require": {
20-
"php": "^8.0",
20+
"php": "^8.2",
2121
"codeception/codeception": "*@dev",
2222
"symfony/finder": "^4.4 || ^5.4 || ^6.0 || ^7.0"
2323
},

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A Codeception module for testing local filesystem.
99

1010
## Requirements
1111

12-
* `PHP 8.0` or higher.
12+
* `PHP 8.2` or higher.
1313

1414
## Installation
1515

tests/unit.suite.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Codeception Test Suite Configuration
22

33
# suite for unit (internal) tests.
4-
error_level: "E_ALL | E_STRICT"
4+
error_level: "E_ALL"
55
actor: UnitTester

0 commit comments

Comments
 (0)