Skip to content

Commit d51555f

Browse files
author
Mark Berube
authored
AC-970: Adjusting dependency confusion behavior
1 parent 2e91b9e commit d51555f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public function packageUpdate(PackageEvent $event): void
234234
than {$privateRepoVersion} in private {$privateRepoUrl}. Public package might've been taken over by a malicious entity,
235235
please investigate and update package requirement to match the version from the private repository";
236236

237-
if (array_key_exists($packageName, $this->nonFixedPackages)) {
237+
if ($this->nonFixedPackages && array_key_exists($packageName, $this->nonFixedPackages)) {
238238
throw new Exception($exceptionMessage);
239239
} else {
240240
$event->getIO()->writeError('<warning>' . $exceptionMessage . '</warning>');

0 commit comments

Comments
 (0)