Kaynağa Gözat

fix phpstan errors

Olivier Massot 1 yıl önce
ebeveyn
işleme
7fbdf94c58
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/Commands/CronCommand.php

+ 2 - 2
src/Commands/CronCommand.php

@@ -257,7 +257,7 @@ class CronCommand extends Command
         $this->configureLoggerFormatter();
     }
 
-    protected function disableLoggerEmailHandler()
+    protected function disableLoggerEmailHandler(): void
     {
         $handlers = [];
         /* @noinspection PhpPossiblePolymorphicInvocationInspection @phpstan-ignore-next-line */
@@ -266,6 +266,6 @@ class CronCommand extends Command
                 $handlers[] = $handler;
             }
         }
-        $this->logger->setHandlers($handlers);
+        $this->logger->setHandlers($handlers);  //@phpstan-ignore-line
     }
 }