Skip to content

Commit d5c2cff

Browse files
authored
Use PHP_CS_FIXER_FUTURE_MODE (#505)
1 parent 4dbb081 commit d5c2cff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646

4747
runs-on: ${{ matrix.os }}
4848

49+
env:
50+
PHP_CS_FIXER_FUTURE_MODE: 1
51+
4952
steps:
5053
- name: Checkout
5154
uses: actions/checkout@v2

src/Fixer/OperatorLinebreakFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getConfigurationDefinition(): FixerConfigurationResolverInterfac
4747
*/
4848
public function configure(?array $configuration = null): void
4949
{
50-
$this->fixer->configure($configuration);
50+
$this->fixer->configure($configuration ?? []);
5151
}
5252

5353
public function getPriority(): int

0 commit comments

Comments
 (0)