We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6341d84 commit 15c37ddCopy full SHA for 15c37dd
1 file changed
src/FrameBuilder.php
@@ -74,7 +74,7 @@ public function buildFromBacktraceFrame(string $file, int $line, array $backtrac
74
if (isset($backtraceFrame['class']) && isset($backtraceFrame['function'])) {
75
$functionName = $backtraceFrame['class'];
76
77
- // Optimization: skip doing regex if we don't have prefixes to strip
+ // Skip if no prefixes are set
78
if ($this->options->getPrefixes()) {
79
$prefixStrippedFunctionName = preg_replace_callback('/@anonymous\\x00([^:]+)(:.*)?/', function (array $matches) {
80
return "@anonymous\x00" . $this->stripPrefixFromFilePath($this->options, $matches[1]) . ($matches[2] ?? '');
0 commit comments