Skip to content

Commit

Permalink
Fixing comparison operator
Browse files Browse the repository at this point in the history
Fixes #9
  • Loading branch information
jaydiablo committed Jan 7, 2020
1 parent f0a31f9 commit a57a6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyRewriterPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function onPrePackageInstall(PackageEvent $event)
private function updatePackageArgument($package)
{
$result = preg_split('/[ :=]/', $package, 2);
if ($result = false) {
if ($result === false) {
return $package;
}
$name = array_shift($result);
Expand Down

0 comments on commit a57a6d0

Please sign in to comment.