Skip to content

Commit ee22c45

Browse files
Add support for PHP 8.5
1 parent b6dd72d commit ee22c45

5 files changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
operating-system: [ ubuntu-latest ]
11-
php-versions: [ '8.1', '8.2', '8.3', '8.4' ]
11+
php-versions: [ '8.2', '8.3', '8.4', '8.5' ]
1212
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1313

1414
steps:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2025 odan
3+
Copyright (c) 2026 odan
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ responses and many other things.
2929

3030
## Requirements
3131

32-
* PHP 8.1 - 8.4
32+
* PHP 8.2 - 8.5
3333

3434
## Installation
3535

composer.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
],
1717
"homepage": "https://github.com/selective-php/transformer",
1818
"require": {
19-
"php": "8.1.* || 8.2.* || 8.3.* || 8.4.*"
19+
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0"
2020
},
2121
"require-dev": {
2222
"friendsofphp/php-cs-fixer": "^3",
2323
"phpstan/phpstan": "^1 || ^2",
24-
"phpunit/phpunit": "^10",
24+
"phpunit/phpunit": "^11",
2525
"squizlabs/php_codesniffer": "^3"
2626
},
2727
"autoload": {
@@ -39,12 +39,10 @@
3939
},
4040
"scripts": {
4141
"cs:check": [
42-
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
43-
"php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi"
42+
"php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi --allow-unsupported-php-version=yes"
4443
],
4544
"cs:fix": [
46-
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
47-
"php-cs-fixer fix --config=.cs.php --ansi --verbose"
45+
"php-cs-fixer fix --config=.cs.php --ansi --verbose --allow-unsupported-php-version=yes"
4846
],
4947
"sniffer:check": "phpcs --standard=phpcs.xml",
5048
"sniffer:fix": "phpcbf --standard=phpcs.xml",

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
bootstrap="vendor/autoload.php"
44
colors="true"
55
backupGlobals="false"
6-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
6+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd"
77
cacheDirectory=".phpunit.cache"
88
backupStaticProperties="false">
99
<coverage/>

0 commit comments

Comments
 (0)