Skip to content

Commit

Permalink
Merge pull request #17 from shirshir/replace-deprecated-rules
Browse files Browse the repository at this point in the history
Replace deprecated rules
  • Loading branch information
pgoodjohn authored Jul 18, 2024
2 parents 72bafb9 + ea7ee29 commit f09addf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PhpCsFixer/Rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static function getBaseRules(): array
'blank_line_before_statement' => [
'statements' => [
'break', 'continue', 'case', 'declare', 'default', 'do', 'for', 'foreach',
'if', 'return', 'switch', 'throw', 'try', 'while', 'yield',
'if', 'return', 'switch', 'throw', 'try', 'while',
],
],
'cast_spaces' => [
Expand All @@ -113,12 +113,12 @@ private static function getBaseRules(): array
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'combine_nested_dirname' => true,
'compact_nullable_typehint' => true,
'compact_nullable_type_declaration' => true,
'concat_space' => [
'spacing' => 'one',
],
'dir_constant' => true,
'escape_implicit_backslashes' => true,
'string_implicit_backslashes' => true,
'explicit_indirect_variable' => true,
'explicit_string_variable' => true,
'fully_qualified_strict_types' => true,
Expand All @@ -141,7 +141,7 @@ private static function getBaseRules(): array
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
'multiline_whitespace_before_semicolons' => true,
'native_function_type_declaration_casing' => true,
'native_type_declaration_casing' => true,
'no_alias_functions' => true,
'no_alternative_syntax' => true,
'no_extra_blank_lines' => [
Expand Down

0 comments on commit f09addf

Please sign in to comment.