Skip to content

Commit

Permalink
Merge pull request #203 from laminas/4.15.x-merge-up-into-4.16.x_j21F…
Browse files Browse the repository at this point in the history
…n5ZC

Merge release 4.15.1 into 4.16.x
  • Loading branch information
gsteel authored Oct 25, 2024
2 parents ff65d02 + 7a837bb commit c3d187b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,6 @@
<InvalidArgument>
<code>$type</code>
</InvalidArgument>
<RedundantCondition>
<code><![CDATA[$atomicType !== 'null']]></code>
<code><![CDATA[$atomicType->type !== 'mixed' && $atomicType !== 'null']]></code>
</RedundantCondition>
<RedundantConditionGivenDocblockType>
<code>$type instanceof ReflectionNamedType</code>
</RedundantConditionGivenDocblockType>
Expand Down
2 changes: 1 addition & 1 deletion src/Generator/TypeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static function fromReflectionType(

return new self(
$atomicType,
$atomicType->type !== 'mixed' && $atomicType !== 'null' && $type->allowsNull()
$atomicType->type !== 'mixed' && $atomicType->type !== 'null' && $type->allowsNull()
);
}

Expand Down

0 comments on commit c3d187b

Please sign in to comment.