Skip to content

Commit a85b559

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/bootstrap-laravel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class LaravelVsCode
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)