Skip to content

Commit 3781cf1

Browse files
Prepare support for PHP 8.4 and drop old PHP version support (#651)
1 parent 3419ace commit 3781cf1

File tree

6 files changed

+18
-21
lines changed

6 files changed

+18
-21
lines changed

.github/workflows/ci.yml

+1-13
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ jobs:
1212
strategy:
1313
matrix:
1414
php-version:
15-
- "7.4"
16-
- "8.0"
17-
- "8.1"
18-
- "8.2"
1915
- "8.3"
2016
- "8.4"
2117
steps:
@@ -37,20 +33,12 @@ jobs:
3733
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
3834
key: "php-${{ matrix.php-version }}-composer-cache"
3935

40-
- name: "Install lowest available packages for PHP 7.4, 8.0 and 8.1"
41-
if: ${{ matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1' }}
42-
run: "composer up --prefer-lowest"
43-
4436
- name: "Install packages for PHP 8.4"
4537
if: ${{ matrix.php-version == '8.4' }}
4638
run: "composer install --ignore-platform-reqs"
4739

48-
- name: "Run tests (old PHP versions)"
49-
if: ${{ matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1' }}
50-
run: "PHPUNIT_FLAGS=--no-coverage make test-phpunit test-psalm test-examples"
51-
5240
- name: "Run tests"
53-
if: ${{ matrix.php-version == '8.2' || matrix.php-version == '8.3' }}
41+
if: ${{ matrix.php-version == '8.3' }}
5442
run: "make -j -O test"
5543

5644
- name: "Run tests (PHP 8.4)"

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Support PHP 8.4
13+
14+
### Removed
15+
16+
- Support for PHP 7.4, 8.0, 8.1, 8.2
17+
1018
## [2.14.0] - 2024-07-11
1119

1220
### Fixed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ If you just start using this package, you should install version 2.
3636

3737
| Version | PHP Version |
3838
| ------- | ----------- |
39-
| 2.\* | 7.4 - 8.3 |
39+
| >= 2.15 | 8.3 - 8.4 |
40+
| \< 2.14 | 7.4 - 8.3 |
4041
| 0.16.\* | 7.0 - 8.2 |
4142
| 0.11.\* | 5.3.0 - 7.4 |
4243

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"docs": "https://ical.poerschke.nrw"
2525
},
2626
"require": {
27-
"php": ">=7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
27+
"php": "~8.3.0 || ~8.4.0",
2828
"ext-mbstring": "*",
2929
"symfony/deprecation-contracts": "^2.1 || ^3.0"
3030
},

composer.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Presentation/Component/Property/Value/TextValue.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TextValue extends Value
2121
/**
2222
* ESCAPED-CHAR as defined in section 3.3.11.
2323
*/
24-
private const ESCAPED_CHARACTERS = [
24+
private const array ESCAPED_CHARACTERS = [
2525
'\\' => '\\\\',
2626
';' => '\\;',
2727
',' => '\\,',
@@ -32,7 +32,7 @@ class TextValue extends Value
3232
/**
3333
* Non TSAFE-CHAR as described in section 3.3.11.
3434
*/
35-
private const FORBIDDEN_CHARACTERS = [
35+
private const array FORBIDDEN_CHARACTERS = [
3636
"\x00",
3737
"\x01",
3838
"\x02",

0 commit comments

Comments
 (0)