Skip to content

Commit

Permalink
Fixes console logs trying to create file containing
Browse files Browse the repository at this point in the history
`DIRECTORY_SEPARATOR` value from data provider name.

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Feb 15, 2024
1 parent ba96ffb commit 65d7dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/ProvidesBrowser.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ protected function getCallerName()
$parts = array_filter([
str_replace('\\', '_', get_class($this)),
$name,
str_replace(['\\', ' '], ['', '_'], $this->dataName()),
str_replace(['\\', DIRECTORY_SEPARATOR, ' '], ['', '', '_'], $this->dataName()),
], fn ($part) => $part !== '');

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

0 comments on commit 65d7dcb

Please sign in to comment.