From 14592d6205938ba7ccc84d62fe0da5689a2ddcf9 Mon Sep 17 00:00:00 2001 From: Matthias Klatte Date: Wed, 21 Feb 2018 17:07:20 +0100 Subject: [PATCH] fix variable array-key notation for older php versions --- src/Package.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Package.php b/src/Package.php index 6160df5..dd28001 100644 --- a/src/Package.php +++ b/src/Package.php @@ -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); }