From bef2a621011e814358178a9c5978574f9424c08d Mon Sep 17 00:00:00 2001 From: DerManoMann Date: Thu, 6 Jun 2024 13:31:51 +1200 Subject: [PATCH] Fix rector issues --- src/Generator.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index ac9699b8..4e148215 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -44,14 +44,12 @@ class Generator /** @var array|null List of annotation namespaces to be autoloaded by doctrine. */ protected ?array $namespaces; - /** @var AnalyserInterface|null The configured analyzer. */ protected ?AnalyserInterface $analyser = null; /** @var array */ protected array $config = []; - /** @var Pipeline|null */ - protected $processorPipeline = null; + protected ?Pipeline $processorPipeline = null; protected ?LoggerInterface $logger = null; @@ -194,7 +192,7 @@ public function setConfig(array $config): Generator public function getProcessorPipeline(): Pipeline { - if (null === $this->processorPipeline) { + if (!$this->processorPipeline instanceof Pipeline) { $this->processorPipeline = new Pipeline([ new Processors\DocBlockDescriptions(), new Processors\MergeIntoOpenApi(),