Skip to content

Commit 235deeb

Browse files
authored
PHP 8.5 (#144)
1 parent c143323 commit 235deeb

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.php-cs-fixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
$config = new PhpCsFixer\Config();
4+
$config->setUnsupportedPhpVersionAllowed(true);
45

56
$config
67
->setRiskyAllowed(true)
@@ -264,8 +265,7 @@
264265
'trim_array_spaces' => true,
265266
// Unary operators should be placed adjacent to their operands.
266267
'unary_operator_spaces' => true,
267-
// Visibility MUST be declared on all properties and methods; `abstract` and `final` MUST be declared before the visibility; `static` MUST be declared after the visibility.
268-
'visibility_required' => true,
268+
'modifier_keywords' => ['elements' => ['const', 'method', 'property']],
269269
// Add `void` return type to functions with missing or empty return statements, but priority is given to `@return` annotations. Requires PHP >= 7.1.
270270
'void_return' => true,
271271
// In array declaration, there MUST be a whitespace after each comma.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828

2929
},
3030
"require": {
31-
"php": ">=8.0 <8.5"
31+
"php": ">=8.0 <8.6"
3232
},
3333
"require-dev": {
3434
"phpunit/phpunit": ">=10.0",
35-
"friendsofphp/php-cs-fixer": "^3.8",
36-
"phpstan/phpstan": "^2.0"
35+
"friendsofphp/php-cs-fixer": "*",
36+
"phpstan/phpstan": "*"
3737
},
3838
"autoload": {
3939
"psr-4": {

0 commit comments

Comments
 (0)