Add support for PHP 8.5 · selective-php/array-reader@4e74565 · GitHub
Skip to content

Commit 4e74565

Browse files
Add support for PHP 8.5
1 parent 96dd87a commit 4e74565

6 files changed

Lines changed: 22 additions & 36 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 1 addition & 1 deletion

‎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
@@ -9,7 +9,7 @@ A strictly typed array reader for PHP.
99

1010
## Requirements
1111

12-
* PHP 8.1 - 8.4
12+
* PHP 8.2 - 8.5
1313

1414
## Installation
1515

‎composer.json‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
],
1414
"homepage": "https://github.com/selective-php/array-reader",
1515
"require": {
16-
"php": "8.1.* || 8.2.* || 8.3.* || 8.4.*",
16+
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
1717
"cakephp/chronos": "^2 || ^3"
1818
},
1919
"require-dev": {
2020
"friendsofphp/php-cs-fixer": "^3",
2121
"phpstan/phpstan": "^1 || ^2",
22-
"phpunit/phpunit": "^10",
22+
"phpunit/phpunit": "^11",
2323
"squizlabs/php_codesniffer": "^3"
2424
},
2525
"autoload": {
@@ -37,12 +37,10 @@
3737
},
3838
"scripts": {
3939
"cs:check": [
40-
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
41-
"php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi"
40+
"php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php --ansi --allow-unsupported-php-version=yes"
4241
],
4342
"cs:fix": [
44-
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
45-
"php-cs-fixer fix --config=.cs.php --ansi --verbose"
43+
"php-cs-fixer fix --config=.cs.php --ansi --verbose --allow-unsupported-php-version=yes"
4644
],
4745
"sniffer:check": "phpcs --standard=phpcs.xml",
4846
"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/>

‎tests/ArrayReaderTest.php‎

Lines changed: 14 additions & 26 deletions

0 commit comments

Comments
 (0)