Skip to content

Commit

Permalink
Fix rector issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann committed Jun 6, 2024
1 parent 758c3c2 commit bef2a62
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ class Generator
/** @var array<string>|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<string,mixed> */
protected array $config = [];

/** @var Pipeline|null */
protected $processorPipeline = null;
protected ?Pipeline $processorPipeline = null;

protected ?LoggerInterface $logger = null;

Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit bef2a62

Please sign in to comment.