Skip to content

Commit 2744418

Browse files
Fix PHP warning when using Composer 1
1 parent c36d11d commit 2744418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Flex.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public function configureInstaller()
304304
$this->installer = $trace['object']->setSuggestedPackagesReporter(new SuggestedPackagesReporter(new NullIO()));
305305

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

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

0 commit comments

Comments
 (0)