Skip to content

Commit c3d187b

Browse files
authored
Merge pull request #203 from laminas/4.15.x-merge-up-into-4.16.x_j21Fn5ZC
Merge release 4.15.1 into 4.16.x
2 parents ff65d02 + 7a837bb commit c3d187b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

psalm-baseline.xml

-4
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,6 @@
591591
<InvalidArgument>
592592
<code>$type</code>
593593
</InvalidArgument>
594-
<RedundantCondition>
595-
<code><![CDATA[$atomicType !== 'null']]></code>
596-
<code><![CDATA[$atomicType->type !== 'mixed' && $atomicType !== 'null']]></code>
597-
</RedundantCondition>
598594
<RedundantConditionGivenDocblockType>
599595
<code>$type instanceof ReflectionNamedType</code>
600596
</RedundantConditionGivenDocblockType>

src/Generator/TypeGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static function fromReflectionType(
6969

7070
return new self(
7171
$atomicType,
72-
$atomicType->type !== 'mixed' && $atomicType !== 'null' && $type->allowsNull()
72+
$atomicType->type !== 'mixed' && $atomicType->type !== 'null' && $type->allowsNull()
7373
);
7474
}
7575

0 commit comments

Comments
 (0)