|
41 | 41 | // Comments with annotation should be docblock when used on structural elements.
|
42 | 42 | 'comment_to_phpdoc' => true,
|
43 | 43 | // Remove extra spaces in a nullable typehint.
|
44 |
| - 'compact_nullable_typehint' => true, |
| 44 | + 'compact_nullable_type_declaration' => true, |
45 | 45 | // Concatenation should be spaced according configuration.
|
46 | 46 | 'concat_space' => ['spacing'=>'one'],
|
47 | 47 | // The PHP constants `true`, `false`, and `null` MUST be written using the correct casing.
|
|
111 | 111 | // Add leading `\` before function invocation to speed up resolving.
|
112 | 112 | 'native_function_invocation' => ['include'=>['@all','trans']],
|
113 | 113 | // Native type hints for functions should use the correct case.
|
114 |
| - 'native_function_type_declaration_casing' => true, |
115 |
| - // All instances created with new keyword must be followed by braces. |
116 |
| - 'new_with_braces' => true, |
| 114 | + 'native_type_declaration_casing' => true, |
| 115 | + // All instances created with new keyword must be followed by parentheses. |
| 116 | + 'new_with_parentheses' => true, |
117 | 117 | // Master functions shall be used instead of aliases.
|
118 | 118 | 'no_alias_functions' => true,
|
119 | 119 | // Master language constructs shall be used instead of aliases.
|
|
156 | 156 | 'no_trailing_whitespace_in_comment' => true,
|
157 | 157 | // Removes unneeded parentheses around control statements.
|
158 | 158 | 'no_unneeded_control_parentheses' => true,
|
159 |
| - // Removes unneeded curly braces that are superfluous and aren't part of a control structure's body. |
160 |
| - 'no_unneeded_curly_braces' => true, |
| 159 | + // Removes unneeded braces that are superfluous and aren't part of a control structure's body. |
| 160 | + 'no_unneeded_braces' => true, |
161 | 161 | // A `final` class must not have `final` methods and `private` methods must not be `final`.
|
162 | 162 | 'no_unneeded_final_method' => true,
|
163 | 163 | // In function arguments there must not be arguments with default values before non-default ones.
|
|
0 commit comments