Skip to content

Commit

Permalink
Merge pull request #750 from IonBazan/bugfix/command-logger-deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
IonBazan authored Nov 30, 2022
2 parents fac3273 + 0f82a07 commit c525e2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions APM/PSRCommandLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function unregister(): void
$this->registered = false;
}

public function commandStarted(CommandStartedEvent $event)
public function commandStarted(CommandStartedEvent $event): void
{
if (! $this->logger) {
return;
Expand All @@ -60,11 +60,11 @@ public function commandStarted(CommandStartedEvent $event)
$this->logger->debug($this->prefix . json_encode($event->getCommand()));
}

public function commandSucceeded(CommandSucceededEvent $event)
public function commandSucceeded(CommandSucceededEvent $event): void
{
}

public function commandFailed(CommandFailedEvent $event)
public function commandFailed(CommandFailedEvent $event): void
{
}
}
6 changes: 3 additions & 3 deletions APM/StopwatchCommandLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function unregister(): void
$this->registered = false;
}

public function commandStarted(CommandStartedEvent $event)
public function commandStarted(CommandStartedEvent $event): void
{
if (! $this->stopwatch) {
return;
Expand All @@ -56,7 +56,7 @@ public function commandStarted(CommandStartedEvent $event)
$this->stopwatch->start(sprintf('mongodb_%s', $event->getRequestId()), 'doctrine_mongodb');
}

public function commandSucceeded(CommandSucceededEvent $event)
public function commandSucceeded(CommandSucceededEvent $event): void
{
if (! $this->stopwatch) {
return;
Expand All @@ -65,7 +65,7 @@ public function commandSucceeded(CommandSucceededEvent $event)
$this->stopwatch->stop(sprintf('mongodb_%s', $event->getRequestId()));
}

public function commandFailed(CommandFailedEvent $event)
public function commandFailed(CommandFailedEvent $event): void
{
if (! $this->stopwatch) {
return;
Expand Down

0 comments on commit c525e2d

Please sign in to comment.