Skip to content

Commit f1d1e17

Browse files
Add PHP 8.4 support (#14)
1 parent f74f15e commit f1d1e17

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.cs.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'array_syntax' => ['syntax' => 'short'],
2020
'cast_spaces' => ['space' => 'none'],
2121
'concat_space' => ['spacing' => 'one'],
22-
'compact_nullable_typehint' => true,
22+
'compact_nullable_type_declaration' => true,
2323
'declare_equal_normalize' => ['space' => 'single'],
2424
'general_phpdoc_annotation_remove' => [
2525
'annotations' => [
@@ -36,7 +36,11 @@
3636
'phpdoc_order' => true, // psr-5
3737
'phpdoc_no_useless_inheritdoc' => false,
3838
'protected_to_private' => false,
39-
'yoda_style' => false,
39+
'yoda_style' => [
40+
'equal' => false,
41+
'identical' => false,
42+
'less_and_greater' => false
43+
],
4044
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
4145
'ordered_imports' => [
4246
'sort_algorithm' => 'alpha',

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) 2023 odan
3+
Copyright (c) 2025 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
@@ -12,7 +12,7 @@ A strictly typed configuration component for PHP. Inspired by [Apache Commons Co
1212

1313
## Requirements
1414

15-
* PHP 8.1+
15+
* PHP 8.1 - 8.4
1616

1717
## Installation
1818

composer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
],
1414
"homepage": "https://github.com/selective-php/config",
1515
"require": {
16-
"php": "^8.1",
16+
"php": "8.1.* || 8.2.* || 8.3.* || 8.4.*",
1717
"cakephp/chronos": "^2 || ^3"
1818
},
1919
"require-dev": {
2020
"friendsofphp/php-cs-fixer": "^3",
21-
"phpstan/phpstan": "^1",
21+
"phpstan/phpstan": "^1 || ^2",
2222
"phpunit/phpunit": "^10",
2323
"squizlabs/php_codesniffer": "^3"
2424
},
@@ -47,13 +47,16 @@
4747
"sniffer:check": "phpcs --standard=phpcs.xml",
4848
"sniffer:fix": "phpcbf --standard=phpcs.xml",
4949
"stan": "phpstan analyse -c phpstan.neon --no-progress --ansi",
50-
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always",
50+
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --no-coverage",
5151
"test:all": [
5252
"@cs:check",
5353
"@sniffer:check",
5454
"@stan",
5555
"@test"
5656
],
57-
"test:coverage": "php -d xdebug.mode=coverage -r \"require 'vendor/bin/phpunit';\" -- --configuration phpunit.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage"
57+
"test:coverage": [
58+
"@putenv XDEBUG_MODE=coverage",
59+
"phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --display-warnings --display-deprecations --coverage-clover build/coverage/clover.xml --coverage-html build/coverage --coverage-text"
60+
]
5861
}
5962
}

0 commit comments

Comments
 (0)