mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-22 15:46:30 +00:00
phpcs: override trailing comma rule
The @Symfony ruleSet comes with trailing_comma_in_multiline's elements set to ['array', 'array_destructuring', 'match', 'parameters']. However, 'parameters' breaks PHP 7.4 Reference: https://cs.symfony.com/doc/rules/control_structure/trailing_comma_in_multiline.html Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
1d661e8c68
commit
c4fe061a2e
1 changed files with 11 additions and 0 deletions
|
@ -37,6 +37,17 @@ return $config
|
|||
// 'psr_autoloading' => true,
|
||||
'strict_comparison' => true,
|
||||
'strict_param' => true,
|
||||
// We override next rule because of current @Symfony ruleSet
|
||||
// 'parameters' element is breaking PHP 7.4
|
||||
// https://cs.symfony.com/doc/rules/control_structure/trailing_comma_in_multiline.html
|
||||
// TODO: remove this configuration after dropping support of PHP 7.4
|
||||
'trailing_comma_in_multiline' => [
|
||||
'elements' => [
|
||||
'arrays',
|
||||
'array_destructuring',
|
||||
'match',
|
||||
],
|
||||
],
|
||||
'concat_space' => [
|
||||
'spacing' => 'one',
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue