From 8108b175bc0cc7c056613ab646d5201500fe8eaf Mon Sep 17 00:00:00 2001 From: Nikita Rushmanov Date: Fri, 5 Jan 2018 02:24:04 -0800 Subject: [PATCH] Prevent Container::make() from type-hinting --- src/LfmPath.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LfmPath.php b/src/LfmPath.php index 81e97511..702501ff 100644 --- a/src/LfmPath.php +++ b/src/LfmPath.php @@ -120,7 +120,7 @@ public function pretty($item_path) $lfm_path = clone $this; $lfm_path = $lfm_path->setName($this->helper->getNameFromPath($item_path)); - return Container::getInstance()->make(LfmItem::class, [$lfm_path, $this->helper]); + return Container::getInstance()->makeWith(LfmItem::class, ['lfm' => $lfm_path, 'helper' => $this->helper]); } public function delete()