Skip to content

Commit

Permalink
[TASK] Bump php-cs-fixer, activate null checks
Browse files Browse the repository at this point in the history
To prevent new PHP 8.4 issues, php-cs-fixer
is raised and the 'null' checks are enabled.

> composer req --dev friendsofphp/php-cs-fixer:^3.59.3
  • Loading branch information
lolli42 committed Jul 11, 2024
1 parent 015a2f5 commit 3f655b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
'no_unused_imports' => true,
'no_useless_else' => true,
'no_whitespace_in_blank_line' => true,
'nullable_type_declaration' => [
'syntax' => 'question_mark',
],
'nullable_type_declaration_for_default_null_value' => true,
'ordered_imports' => true,
'php_unit_construct' => ['assertions' => ['assertEquals', 'assertSame', 'assertNotEquals', 'assertNotSame']],
'php_unit_mock_short_will_return' => true,
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"require-dev": {
"phpunit/phpunit": "^11.2.6",
"friendsofphp/php-cs-fixer": "^3.50.0",
"friendsofphp/php-cs-fixer": "^3.59.3",
"phpstan/phpstan": "^1.10.57"
},
"replace": {
Expand Down

0 comments on commit 3f655b5

Please sign in to comment.