File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,6 @@ protected function isInternalFile(string $file): bool
136
136
*/
137
137
protected function formatLocation (string $ file , ?int $ line ): string
138
138
{
139
- return Str::replaceFirst (base_path (' / ' ), '' , $ file ).(is_int ($ line ) ? (': ' .$ line ) : '' );
139
+ return Str::replaceFirst (base_path (DIRECTORY_SEPARATOR ), '' , $ file ).(is_int ($ line ) ? (': ' .$ line ) : '' );
140
140
}
141
141
}
Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ protected function resolveLocation(): string
85
85
*/
86
86
protected function isInternalFile (string $ file ): bool
87
87
{
88
- return Str::startsWith ($ file , base_path ('vendor/ laravel/ pulse ' ))
89
- || Str::startsWith ($ file , base_path ('vendor/ laravel/ framework ' ))
88
+ return Str::startsWith ($ file , base_path ('vendor ' . DIRECTORY_SEPARATOR . ' laravel ' . DIRECTORY_SEPARATOR . ' pulse ' ))
89
+ || Str::startsWith ($ file , base_path ('vendor ' . DIRECTORY_SEPARATOR . ' laravel ' . DIRECTORY_SEPARATOR . ' framework ' ))
90
90
|| $ file === base_path ('artisan ' )
91
91
|| $ file === public_path ('index.php ' );
92
92
}
@@ -96,6 +96,6 @@ protected function isInternalFile(string $file): bool
96
96
*/
97
97
protected function formatLocation (string $ file , ?int $ line ): string
98
98
{
99
- return Str::replaceFirst (base_path (' / ' ), '' , $ file ).(is_int ($ line ) ? (': ' .$ line ) : '' );
99
+ return Str::replaceFirst (base_path (DIRECTORY_SEPARATOR ), '' , $ file ).(is_int ($ line ) ? (': ' .$ line ) : '' );
100
100
}
101
101
}
You can’t perform that action at this time.
0 commit comments