Skip to content

Commit 89822e4

Browse files
authored
Merge pull request #3 from YuriiShkinder/master
fixed deprecation, added return types
2 parents 0c81dcc + 57b2550 commit 89822e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/JaegerMongoDbQueryTimeCollector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(TracerInterface $tracer, JaegerMongoDbCommandConvert
3939
$this->convertor = $convertor;
4040
}
4141

42-
public function commandStarted(CommandStartedEvent $event)
42+
public function commandStarted(CommandStartedEvent $event): void
4343
{
4444
/** @var MongoDB\Driver\Server $server */
4545
$server = $event->getServer();
@@ -69,7 +69,7 @@ private function getSpanByEvent($event): ?SpanInterface
6969
return $span;
7070
}
7171

72-
public function commandFailed(CommandFailedEvent $event)
72+
public function commandFailed(CommandFailedEvent $event): void
7373
{
7474
if (null === $span = $this->getSpanByEvent($event)) {
7575
return;
@@ -79,7 +79,7 @@ public function commandFailed(CommandFailedEvent $event)
7979
$span->finish($event->getDurationMicros());
8080
}
8181

82-
public function commandSucceeded(CommandSucceededEvent $event)
82+
public function commandSucceeded(CommandSucceededEvent $event): void
8383
{
8484
if (null === $span = $this->getSpanByEvent($event)) {
8585
return;

0 commit comments

Comments
 (0)