We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e12940f commit d9d8141Copy full SHA for d9d8141
src/Config.php
@@ -1,4 +1,4 @@
1
-<?php
+<?php declare(strict_types=1);
2
namespace phootwork\fixer;
3
4
use PhpCsFixer\Config as BaseConfig;
@@ -13,7 +13,7 @@ public function __construct() {
13
}
14
15
public function getRules(): array {
16
- return [
+ $rules = [
17
'align_multiline_comment' => [
18
'comment_type' => 'phpdocs_only'
19
],
@@ -86,5 +86,12 @@ public function getRules(): array {
86
'visibility_required' => true,
87
'whitespace_after_comma_in_array' => true
88
];
89
+
90
+ if (phpversion() >= '8.0') {
91
+ //temporary workaround to avoid spaces between PHP 8 union types
92
+ $rules['binary_operator_spaces']['operators'] = ['|' => null];
93
+ }
94
95
+ return $rules;
96
97
0 commit comments