Skip to content

Commit

Permalink
style: enable types_spaces rule
Browse files Browse the repository at this point in the history
Rule:

https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/930dc93a1b90eb991d13e2766a340aa6922d4a2c/doc/rules/whitespace/types_spaces.rst

Examples:

`catch(A | B)` => `catch(A|B)`

`function foo(): A | B` => `function foo(): A|B`

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
  • Loading branch information
kesselb committed Jul 9, 2024
1 parent cf5f18d commit d65dcd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function getRules() : array {
'single_import_per_statement' => true,
'single_line_after_imports' => true,
'switch_case_space' => true,
'types_spaces' => ['space' => 'none', 'space_multiple_catch' => 'none'],
'visibility_required' => [
'elements' => ['property', 'method', 'const']
],
Expand Down

0 comments on commit d65dcd7

Please sign in to comment.