Skip to content

Commit 21e739c

Browse files
committed
Update TraceEntry.php
1 parent 0fcf760 commit 21e739c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/webfiori/error/TraceEntry.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ public function __toString() {
4747
* the method will return the string 'X'.
4848
*/
4949
public static function extractClassName(string $filePath) : string {
50-
$expl = explode(DIRECTORY_SEPARATOR, $filePath);
50+
$fixed = str_replace('\\', DIRECTORY_SEPARATOR, str_replace('/', DIRECTORY_SEPARATOR, $filePath));
51+
$expl = explode(DIRECTORY_SEPARATOR, $fixed);
5152

5253
if (count($expl) <= 1) {
5354
return 'X';

0 commit comments

Comments
 (0)