diff --git a/src/Concerns/ProvidesBrowser.php b/src/Concerns/ProvidesBrowser.php index 9857ebeb1..571e53789 100644 --- a/src/Concerns/ProvidesBrowser.php +++ b/src/Concerns/ProvidesBrowser.php @@ -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);