diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 3036a1db..43d9a082 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -591,10 +591,6 @@
$type
-
-
- type !== 'mixed' && $atomicType !== 'null']]>
-
$type instanceof ReflectionNamedType
diff --git a/src/Generator/TypeGenerator.php b/src/Generator/TypeGenerator.php
index 0d7fc532..ee77d324 100644
--- a/src/Generator/TypeGenerator.php
+++ b/src/Generator/TypeGenerator.php
@@ -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()
);
}