Skip to content

Commit d646d3f

Browse files
authored
Merge pull request #509 from Nikita240/patch-1
Prevent Container::make() from type-hinting the parameters
2 parents 896831b + 8108b17 commit d646d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LfmPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function pretty($item_path)
120120
$lfm_path = clone $this;
121121
$lfm_path = $lfm_path->setName($this->helper->getNameFromPath($item_path));
122122

123-
return Container::getInstance()->make(LfmItem::class, [$lfm_path, $this->helper]);
123+
return Container::getInstance()->makeWith(LfmItem::class, ['lfm' => $lfm_path, 'helper' => $this->helper]);
124124
}
125125

126126
public function delete()

0 commit comments

Comments
 (0)