Skip to content

Commit 0e3f8c1

Browse files
committed
Fix LaravelVsCode::relativePath when path does not exist
Fixes N1ebieski#16
1 parent df93e42 commit 0e3f8c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php-templates/bootstrap-laravel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static function relativePath($path)
1414
return (string) $path;
1515
}
1616

17-
return ltrim(str_replace(base_path(), '', realpath($path)), DIRECTORY_SEPARATOR);
17+
return ltrim(str_replace(base_path(), '', realpath($path) ?: $path), DIRECTORY_SEPARATOR);
1818
}
1919

2020
public static function isVendor($path)

0 commit comments

Comments
 (0)