Skip to content

Commit

Permalink
Fix PHP warning when using Composer 1
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 6, 2022
1 parent c36d11d commit 2744418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Flex.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public function configureInstaller()
$this->installer = $trace['object']->setSuggestedPackagesReporter(new SuggestedPackagesReporter(new NullIO()));

$updateAllowList = \Closure::bind(function () {
return $this->updateWhitelist ?? $this->updateAllowList;
return $this->updateWhitelist ?? $this->updateAllowList ?? null;
}, $this->installer, $this->installer)();

if (['php' => 0] === $updateAllowList) {
Expand Down

0 comments on commit 2744418

Please sign in to comment.