Skip to content

Commit

Permalink
Fix Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
gmazzap committed May 5, 2024
1 parent 55e4bdf commit 0209a01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@

<issueHandlers>
<InvalidDocblock errorLevel="suppress"/>
<RedundantConditionGivenDocblockType errorLevel="suppress"/>
<MissingClassConstType errorLevel="suppress"/>
</issueHandlers>
</psalm>
1 change: 0 additions & 1 deletion src/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ private static function createFromUnionType(\ReflectionUnionType $type): Type
$instance = new static();

foreach ($type->getTypes() as $aType) {
/** @psalm-suppress RedundantConditionGivenDocblockType */
if ($aType instanceof \ReflectionNamedType) {
$instance = $instance->merge(static::createFromNamedType($aType));
continue;
Expand Down

0 comments on commit 0209a01

Please sign in to comment.