Skip to content

Commit

Permalink
fix variable array-key notation for older php versions
Browse files Browse the repository at this point in the history
  • Loading branch information
PRGfx committed Feb 21, 2018
1 parent b45ad68 commit 14592d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function addDependency(Package $package, $type = self::DEPENDENCY_TYPE_DE
if (in_array($package, $this->$field)) {
return;
}
($this->$field)[] = $package;
array_push($this->$field, $package);
$package->addResolves($this);
}

Expand Down

0 comments on commit 14592d6

Please sign in to comment.