Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

$config = new PhpCsFixer\Config();
$config->setUnsupportedPhpVersionAllowed(true);

$config
->setRiskyAllowed(true)
Expand Down Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down