Skip to content

Commit

Permalink
[tmp] Fix whitespace around union types separator (#12)
Browse files Browse the repository at this point in the history
* [tmp] Fix whitespace around union types separator

Disable the binary_operator_spaces ( spaces around &,|,^,<<, ... ) for | 

Until it is resolved upstream ( PHP-CS-Fixer/PHP-CS-Fixer#5495 )

https://www.php.net/manual/en/language.operators.bitwise.php
  • Loading branch information
RobinHoutevelts authored Mar 10, 2021
1 parent 4f5d68d commit 91ed913
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.5.0] - 2021-03-10
### Changed
- Temporary disable "binary_operator_spaces" rule for " | " [#12](https://github.com/wieni/wmcodestyle/pull/12)

## [1.4.0] - 2020-12-08
### Added
- Add rulesets for PHP 7.4 & 8.0
Expand Down
1 change: 1 addition & 0 deletions src/PhpCsFixer/Config/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ final class Php80 extends RuleSetBase
'@Symfony' => true,
'@PHP80Migration' => true,
'@DoctrineAnnotation' => true,
'binary_operator_spaces' => ['operators' => ['|' => null]]
'blank_line_before_statement' => false,
'class_definition' => [
'multi_line_extends_each_single_line' => true,
Expand Down

0 comments on commit 91ed913

Please sign in to comment.