Skip to content

Commit bf1873e

Browse files
committed
Fixed incosistent return types
1 parent 1e91ce8 commit bf1873e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Span/Span.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ public function start(int $startTimeUsec): SpanInterface
6868
public function finish(int $durationUsec = 0): SpanInterface
6969
{
7070
$this->duration = $durationUsec ?: (microtime(true) * 1000000) - $this->startTime;
71+
$this->tracer->finish($this, -1);
7172

72-
return $this->tracer->finish($this, -1);
73+
return $this;
7374
}
7475

7576
public function addTag(Tag $tag): SpanInterface

0 commit comments

Comments
 (0)