Skip to content

Commit 96d40ef

Browse files
authored
Merge pull request #12 from mollie/bart/fixer-3-compatibility
2 parents aa1feda + d81dc92 commit 96d40ef

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": "^7.1.3 || ^8.0",
14-
"friendsofphp/php-cs-fixer": "^2.16"
14+
"friendsofphp/php-cs-fixer": "^3.1.0"
1515
},
1616
"autoload": {
1717
"psr-4": {

src/PhpCsFixer/Rules.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ private static function getBaseRules(): array
155155
'remove_in_empty_for_expressions' => true,
156156
],
157157
'ternary_to_null_coalescing' => true,
158+
'types_spaces' => [
159+
'space' => 'single', // Added to keep previous behaviour with the cs-fixer 3.1.0 upgrade.
160+
],
158161
'visibility_required' => [
159162
'elements' => [
160163
'const', 'method', 'property',

0 commit comments

Comments
 (0)