Skip to content

Commit 4e4fad2

Browse files
BALOTIASildyria
andauthored
Adds php 8.2 - 8.5 compatibility & loosens package requirements (#79)
Co-authored-by: ildyria <beviguier@gmail.com>
1 parent 4d99112 commit 4e4fad2

File tree

4 files changed

+14
-6870
lines changed

4 files changed

+14
-6870
lines changed

.github/workflows/php.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ jobs:
9494
fail-fast: false
9595
matrix:
9696
php-version:
97+
- "8.2"
98+
- "8.3"
9799
- "8.4"
98100
- "8.5"
99101
env:
@@ -122,6 +124,9 @@ jobs:
122124
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
123125
- name: Install Composer dependencies
124126
uses: ramsey/composer-install@a2636af0004d1c0499ffca16ac0b4cc94df70565 # 3.1.0
127+
with:
128+
dependency-versions: "latest" # Use latest versions of dependencies to mimic projects using this package.
129+
composer-options: "--prefer-dist --optimize-autoloader" # Disable dev dependencies, to mimic projects using this package.
125130

126131
# - name: boot test server
127132
# run: vendor/bin/http_test_server > /dev/null 2>&1 &

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ composer.phar
55
.DS_Store
66
.idea
77
.phpunit.result.cache
8-
infection.html
8+
infection.html
9+
# Otherwise we won't be able to install it on different php version.
10+
composer.lock

composer.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,15 @@
3333
"Imagick"
3434
],
3535
"require": {
36-
"php": "^8.4",
36+
"php": "^8.2 || ^8.3 || ^8.4 || ^8.5",
3737
"ext-fileinfo": "*",
3838
"fylax/forceutf8": "^3.0.3",
39-
"php-ffmpeg/php-ffmpeg": "^1.2",
40-
"thecodingmachine/safe": "^3.0"
39+
"php-ffmpeg/php-ffmpeg": "^1.4",
40+
"thecodingmachine/safe": "^2.0 || ^3.0"
4141
},
4242
"require-dev": {
4343
"friendsofphp/php-cs-fixer": "^3.51",
44-
"infection/infection": "^0.29.14",
45-
"lychee-org/phpstan-lychee": "^2.0.1",
44+
"lychee-org/phpstan-lychee": "^2.0.1|^1.0.0",
4645
"php-parallel-lint/php-parallel-lint": "^1.3.2",
4746
"phpmd/phpmd": "^2.15",
4847
"phpunit/phpunit": "^9.5.10",
@@ -80,16 +79,10 @@
8079
]
8180
},
8281
"config": {
83-
"platform": {
84-
"php": "8.4"
85-
},
8682
"preferred-install": "dist",
8783
"sort-packages": true,
88-
"optimize-autoloader": true,
89-
"allow-plugins": {
90-
"infection/extension-installer": true
91-
}
84+
"optimize-autoloader": true
9285
},
93-
"prefer-stable": true,
86+
"prefer-stable": true,
9487
"minimum-stability": "dev"
9588
}

0 commit comments

Comments
 (0)