Skip to content

Commit 15c37dd

Browse files
committed
Update comment missed in #1820
1 parent 6341d84 commit 15c37dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/FrameBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function buildFromBacktraceFrame(string $file, int $line, array $backtrac
7474
if (isset($backtraceFrame['class']) && isset($backtraceFrame['function'])) {
7575
$functionName = $backtraceFrame['class'];
7676

77-
// Optimization: skip doing regex if we don't have prefixes to strip
77+
// Skip if no prefixes are set
7878
if ($this->options->getPrefixes()) {
7979
$prefixStrippedFunctionName = preg_replace_callback('/@anonymous\\x00([^:]+)(:.*)?/', function (array $matches) {
8080
return "@anonymous\x00" . $this->stripPrefixFromFilePath($this->options, $matches[1]) . ($matches[2] ?? '');

0 commit comments

Comments
 (0)