Skip to content

Commit 3088b7d

Browse files
committed
Fix linter issues
1 parent 86f6caf commit 3088b7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Kernel/Tracing/SymfonyStopwatchTracer.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ public function start(string $name): SpanInterface
2222
/**
2323
* Fixes a Symfony Profiler bug that cuts off all FQN classes.
2424
*
25-
* @var string $formatted
25+
* @var non-empty-string $formatted
2626
*/
27-
$formatted = \preg_replace('/\\\\?(?:\w+\\\\)+(\w+)/isum', '$1', $name);
27+
$formatted = \preg_replace('/\\\\?(?:\w+\\\\)+(\w+)/isum', '$1', $name)
28+
?? $name;
2829

2930
return new SymfonyStopwatchSpan(
3031
event: $this->stopwatch->start($formatted, $this->category),

0 commit comments

Comments
 (0)