Skip to content

Commit

Permalink
Limiting length of getCallerName return value to avoid issue when sto…
Browse files Browse the repository at this point in the history
…ring logs and screenshots
  • Loading branch information
lk77 authored Nov 14, 2023
1 parent fa6c39f commit 51d8769
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 @@ -232,7 +232,7 @@ protected function getCallerName()
? $this->name()
: $this->getName(false); // @phpstan-ignore-line

return str_replace('\\', '_', get_class($this)).'_'.$name;
return str_replace('\\', '_', substr(get_class($this), 0, 70)).'_'.substr($name, 0, 70);
}

/**
Expand Down

0 comments on commit 51d8769

Please sign in to comment.