|
11 | 11 | ->name('*.php.dist') |
12 | 12 | ->in(__DIR__); |
13 | 13 |
|
14 | | -return (new PhpCsFixer\Config()) |
| 14 | +return new PhpCsFixer\Config() |
15 | 15 | ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) |
16 | 16 | ->setRiskyAllowed(true) |
17 | 17 | ->setFinder($finder) |
|
121 | 121 | 'native_function_invocation' => false, // I suppose this would be best, but I am still unconvinced about the visual aspect of it |
122 | 122 | 'native_function_type_declaration_casing' => false, // Deprecated |
123 | 123 | 'native_type_declaration_casing' => true, |
124 | | - 'new_expression_parentheses' => false, // Requires PHP 8.4 |
| 124 | + 'new_expression_parentheses' => true, |
125 | 125 | 'new_with_braces' => false, // Deprecated |
126 | 126 | 'new_with_parentheses' => true, |
127 | 127 | 'no_alias_functions' => true, |
|
192 | 192 | 'ordered_traits' => true, |
193 | 193 | 'ordered_types' => false, // We prefer to keep some freedom |
194 | 194 | 'php_unit_assert_new_names' => true, |
195 | | - 'php_unit_attributes' => false, // Requires PHPUnit 10 |
| 195 | + 'php_unit_attributes' => true, |
196 | 196 | 'php_unit_construct' => true, |
197 | 197 | 'php_unit_data_provider_method_order' => true, |
198 | 198 | 'php_unit_data_provider_name' => ['prefix' => 'provider', 'suffix' => ''], |
|
0 commit comments