We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff65d02 + 7a837bb commit c3d187bCopy full SHA for c3d187b
psalm-baseline.xml
@@ -591,10 +591,6 @@
591
<InvalidArgument>
592
<code>$type</code>
593
</InvalidArgument>
594
- <RedundantCondition>
595
- <code><![CDATA[$atomicType !== 'null']]></code>
596
- <code><![CDATA[$atomicType->type !== 'mixed' && $atomicType !== 'null']]></code>
597
- </RedundantCondition>
598
<RedundantConditionGivenDocblockType>
599
<code>$type instanceof ReflectionNamedType</code>
600
</RedundantConditionGivenDocblockType>
src/Generator/TypeGenerator.php
@@ -69,7 +69,7 @@ public static function fromReflectionType(
69
70
return new self(
71
$atomicType,
72
- $atomicType->type !== 'mixed' && $atomicType !== 'null' && $type->allowsNull()
+ $atomicType->type !== 'mixed' && $atomicType->type !== 'null' && $type->allowsNull()
73
);
74
}
75
0 commit comments