diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 062537e..baf983a 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -1,6 +1,7 @@ setUnsupportedPhpVersionAllowed(true); $config ->setRiskyAllowed(true) @@ -264,8 +265,7 @@ 'trim_array_spaces' => true, // Unary operators should be placed adjacent to their operands. 'unary_operator_spaces' => true, - // 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. - 'visibility_required' => true, + 'modifier_keywords' => ['elements' => ['const', 'method', 'property']], // Add `void` return type to functions with missing or empty return statements, but priority is given to `@return` annotations. Requires PHP >= 7.1. 'void_return' => true, // In array declaration, there MUST be a whitespace after each comma. diff --git a/composer.json b/composer.json index c4341b6..c04562b 100644 --- a/composer.json +++ b/composer.json @@ -28,12 +28,12 @@ }, "require": { - "php": ">=8.0 <8.5" + "php": ">=8.0 <8.6" }, "require-dev": { "phpunit/phpunit": ">=10.0", - "friendsofphp/php-cs-fixer": "^3.8", - "phpstan/phpstan": "^2.0" + "friendsofphp/php-cs-fixer": "*", + "phpstan/phpstan": "*" }, "autoload": { "psr-4": {