diff --git a/src/Service/Logger.php b/src/Service/Logger.php index f0794a5..0d2e963 100644 --- a/src/Service/Logger.php +++ b/src/Service/Logger.php @@ -110,10 +110,10 @@ private function createLoggingJob(string $type, int $timestamp, string $line, bo try { $queueStorage = $this->entityTypeManager->getStorage('advancedqueue_queue'); - /** @var \Drupal\advancedqueue\Entity\Queue $queue */ + /** @var \Drupal\advancedqueue\Entity\Queue|null $queue */ $queue = $queueStorage->load(self::OS2WEB_AUDIT_QUEUE_ID); - if (is_null($queue)) { + if (NULL === $queue) { throw new \Exception(sprintf('Queue (%s) not found.', self::OS2WEB_AUDIT_QUEUE_ID)); }