Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit b2b7ba3

Browse files
committed
update PHP-CS-Fixer config
1 parent de829e4 commit b2b7ba3

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
],
1414
"autoload": {
1515
"psr-4": {
16+
"Guite\\ValidationTestBundle\\": "src/extensions/Guite/ValidationTestBundle/src",
1617
"Zikula\\CoreBundle\\": "src/system/CoreBundle/src",
1718
"Zikula\\LegalBundle\\": "src/system/LegalBundle/src",
1819
"Zikula\\ThemeBundle\\": "src/system/ThemeBundle/src",

config/bundles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@
2525
Nucleos\ProfileBundle\NucleosProfileBundle::class => ['all' => true],
2626
Symfony\UX\Translator\UxTranslatorBundle::class => ['all' => true],
2727
Vich\UploaderBundle\VichUploaderBundle::class => ['all' => true],
28+
Guite\ValidationTestBundle\GuiteValidationTestBundle::class => ['all' => true],
2829
];

php_cs_fixer.dist.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
->setRules([
2525
'@PSR12' => true,
2626
'@PHP84Migration' => true,
27-
'@PHPUnit100Migration:risky' => true,
27+
'@PHPUnit110Migration:risky' => true,
2828
'@Symfony' => true,
2929
'@Symfony:risky' => true,
3030
'combine_nested_dirname' => true,
@@ -35,14 +35,26 @@
3535
'native_function_invocation' => false,
3636
'no_short_bool_cast' => true,
3737
'no_unreachable_default_argument_value' => false,
38+
'no_useless_else' => true,
39+
'no_useless_return' => true,
3840
'nullable_type_declaration_for_default_null_value' => true,
3941
'phpdoc_align' => ['align' => 'left'],
4042
'phpdoc_to_param_type' => true,
4143
'phpdoc_to_return_type' => true,
44+
'php_unit_attributes' => true,
4245
'php_unit_test_annotation' => false, // breaks "@depends App\Something::testFooBar()"
43-
'protected_to_private' => false,
46+
'protected_to_private' => true,
47+
'random_api_migration' => [
48+
'replacements' => [
49+
'mt_getrandmax' => 'getrandmax',
50+
'mt_rand' => 'random_int',
51+
'mt_srand' => 'srand',
52+
'rand' => 'random_int',
53+
],
54+
],
4455
'simplified_null_return' => true,
4556
'single_line_throw' => false,
57+
'static_lambda' => true,
4658
])
4759
->setRiskyAllowed(true)
4860
->setFinder(

0 commit comments

Comments
 (0)