Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions analysis-baseline.toml
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,6 @@ code = "impossible-condition"
message = "This condition (type `false`) will always evaluate to false."
count = 1

[[issues]]
file = "src/FrameBuilder.php"
code = "invalid-operand"
message = "Right operand in `&&` operation is an `array`."
count = 1

[[issues]]
file = "src/FrameBuilder.php"
code = "mixed-assignment"
Expand Down
2 changes: 1 addition & 1 deletion src/FrameBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function buildFromBacktraceFrame(string $file, int $line, array $backtrac
}

// Starting with PHP 8.4 a closure function call is reported as "{closure:filename:line}" instead of just "{closure}", properly strip the prefixes from that format
if (\PHP_VERSION_ID >= 80400 && $functionName !== null && $this->options->getPrefixes()) {
if (\PHP_VERSION_ID >= 80400 && $functionName !== null && $this->options->getPrefixes() !== []) {
$prefixStrippedFunctionName = preg_replace_callback('/^\{closure:(.*?):(\d+)}$/', function (array $matches) {
return '{closure:' . $this->stripPrefixFromFilePath($this->options, $matches[1]) . ':' . $matches[2] . '}';
}, $functionName);
Expand Down
Loading