Skip to content

Commit

Permalink
Add suppression for Psalm warning
Browse files Browse the repository at this point in the history
Added a `@psalm-suppress DocblockTypeContradiction` annotation to suppress Psalm's DocblockTypeContradiction warning in the CompileInjector.php file. This prevents the warning from being raised when the types documented in the DocBlock contradict each other.
  • Loading branch information
koriym committed May 9, 2024
1 parent bac220d commit 23610e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CompileInjector.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public function getInstance($interface, $name = Name::ANY)
return $this->singletons[$dependencyIndex];
}

/** @psalm-suppress DocblockTypeContradiction */
if ($this->functions === null) {
// @codeCoverageIgnoreStart
$this->__wakeup();
Expand Down

0 comments on commit 23610e9

Please sign in to comment.