Skip to content

Commit 41d7e6b

Browse files
committed
feat: add spaces between union types
1 parent ffd9d00 commit 41d7e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coding_style.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
SingleLineEmptyBodyFixer::class,
7575
CastSpacesFixer::class,
7676
TypeDeclarationSpacesFixer::class,
77-
TypesSpacesFixer::class,
7877
// Casing
7978
ClassReferenceNameCasingFixer::class,
8079
LowercaseStaticReferenceFixer::class,
@@ -115,6 +114,7 @@
115114
StatementIndentationFixer::class,
116115
]);
117116

117+
$ecsConfig->ruleWithConfiguration(TypesSpacesFixer::class, ['space' => 'single', 'space_multiple_catch' => 'single']);
118118
$ecsConfig->ruleWithConfiguration(ArraySyntaxFixer::class, ['syntax' => 'short']);
119119
$ecsConfig->ruleWithConfiguration(LineLengthFixer::class, [LineLengthFixer::LINE_LENGTH => 120]);
120120
$ecsConfig->ruleWithConfiguration(

0 commit comments

Comments
 (0)