Skip to content

Commit 676df11

Browse files
authored
Fixes console logs trying to create file containing (#1086)
`DIRECTORY_SEPARATOR` value from data provider name. Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent ba96ffb commit 676df11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Concerns/ProvidesBrowser.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ protected function getCallerName()
235235
$parts = array_filter([
236236
str_replace('\\', '_', get_class($this)),
237237
$name,
238-
str_replace(['\\', ' '], ['', '_'], $this->dataName()),
238+
str_replace(['\\', DIRECTORY_SEPARATOR, ' '], ['', '', '_'], $this->dataName()),
239239
], fn ($part) => $part !== '');
240240

241241
return substr(implode('_', $parts), -140);

0 commit comments

Comments
 (0)