Skip to content

Commit f09addf

Browse files
authored
Merge pull request #17 from shirshir/replace-deprecated-rules
Replace deprecated rules
2 parents 72bafb9 + ea7ee29 commit f09addf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PhpCsFixer/Rules.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private static function getBaseRules(): array
104104
'blank_line_before_statement' => [
105105
'statements' => [
106106
'break', 'continue', 'case', 'declare', 'default', 'do', 'for', 'foreach',
107-
'if', 'return', 'switch', 'throw', 'try', 'while', 'yield',
107+
'if', 'return', 'switch', 'throw', 'try', 'while',
108108
],
109109
],
110110
'cast_spaces' => [
@@ -113,12 +113,12 @@ private static function getBaseRules(): array
113113
'combine_consecutive_issets' => true,
114114
'combine_consecutive_unsets' => true,
115115
'combine_nested_dirname' => true,
116-
'compact_nullable_typehint' => true,
116+
'compact_nullable_type_declaration' => true,
117117
'concat_space' => [
118118
'spacing' => 'one',
119119
],
120120
'dir_constant' => true,
121-
'escape_implicit_backslashes' => true,
121+
'string_implicit_backslashes' => true,
122122
'explicit_indirect_variable' => true,
123123
'explicit_string_variable' => true,
124124
'fully_qualified_strict_types' => true,
@@ -141,7 +141,7 @@ private static function getBaseRules(): array
141141
'modernize_types_casting' => true,
142142
'multiline_comment_opening_closing' => true,
143143
'multiline_whitespace_before_semicolons' => true,
144-
'native_function_type_declaration_casing' => true,
144+
'native_type_declaration_casing' => true,
145145
'no_alias_functions' => true,
146146
'no_alternative_syntax' => true,
147147
'no_extra_blank_lines' => [

0 commit comments

Comments
 (0)