Skip to content

Commit 8d728a4

Browse files
committed
fix bug with isDirectory() in LfmPath
1 parent 66e29ce commit 8d728a4

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
@@ -153,7 +153,7 @@ public function isDirectory()
153153
$working_dir = $this->path('working_dir');
154154
$parent_dir = substr($working_dir, 0, strrpos($working_dir, '/'));
155155

156-
$parent_path = clone $this;
156+
$parent_path = app(static::class);
157157
$parent_path->dir($parent_dir)->setName(null);
158158

159159
$directories = $parent_path->directories();

0 commit comments

Comments
 (0)