|
24 | 24 | ->setRules([ |
25 | 25 | '@PSR12' => true, |
26 | 26 | '@PHP84Migration' => true, |
27 | | - '@PHPUnit100Migration:risky' => true, |
| 27 | + '@PHPUnit110Migration:risky' => true, |
28 | 28 | '@Symfony' => true, |
29 | 29 | '@Symfony:risky' => true, |
30 | 30 | 'combine_nested_dirname' => true, |
|
35 | 35 | 'native_function_invocation' => false, |
36 | 36 | 'no_short_bool_cast' => true, |
37 | 37 | 'no_unreachable_default_argument_value' => false, |
| 38 | + 'no_useless_else' => true, |
| 39 | + 'no_useless_return' => true, |
38 | 40 | 'nullable_type_declaration_for_default_null_value' => true, |
39 | 41 | 'phpdoc_align' => ['align' => 'left'], |
40 | 42 | 'phpdoc_to_param_type' => true, |
41 | 43 | 'phpdoc_to_return_type' => true, |
| 44 | + 'php_unit_attributes' => true, |
42 | 45 | '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 | + ], |
44 | 55 | 'simplified_null_return' => true, |
45 | 56 | 'single_line_throw' => false, |
| 57 | + 'static_lambda' => true, |
46 | 58 | ]) |
47 | 59 | ->setRiskyAllowed(true) |
48 | 60 | ->setFinder( |
|
0 commit comments