Skip to content

Commit

Permalink
adjust cs fixer to avoid PHP 7 syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Oct 2, 2024
1 parent 4bb66d1 commit 443b33d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'trailing_comma_in_multiline' => false, // for methods this is incompatible with PHP 7
])
->setFinder($finder)
;
Expand Down
2 changes: 1 addition & 1 deletion src/Composer/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ private function updateComposerJson(array $missingRequires, bool $sortPackages)

private function updateComposerLock(Composer $composer, IOInterface $io)
{
if ($composer->getConfig()->get('lock') === false) {
if (false === $composer->getConfig()->get('lock')) {
return;
}

Expand Down

0 comments on commit 443b33d

Please sign in to comment.