From 1592f1516288487384b54332143b4cf62acc5601 Mon Sep 17 00:00:00 2001 From: jekuaitk Date: Mon, 16 Dec 2024 10:44:03 +0100 Subject: [PATCH] Fixed variable docs --- src/Service/Logger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); }