diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index c1b0af26bfa..75e8f8aae5a 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -125,11 +125,6 @@ parameters:
count: 1
path: src/EntityRepository.php
- -
- message: "#^Method Doctrine\\\\ORM\\\\Mapping\\\\ClassMetadata\\:\\:fullyQualifiedClassName\\(\\) should return class\\-string\\|null but returns string\\|null\\.$#"
- count: 1
- path: src/Mapping/ClassMetadata.php
-
-
message: "#^If condition is always true\\.$#"
count: 1
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 17a090f3a2c..fabbff44b7d 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -314,16 +314,7 @@
$definition
- subClasses]]>
-
- $className
- $className
- namespace . '\\' . $className]]>
-
-
- class-string|null
-
reflClass]]>
diff --git a/src/Mapping/ClassMetadata.php b/src/Mapping/ClassMetadata.php
index 3f5b1c77732..b3d7838cce6 100644
--- a/src/Mapping/ClassMetadata.php
+++ b/src/Mapping/ClassMetadata.php
@@ -2464,10 +2464,7 @@ public function getAssociationMappedByTargetField(string $assocName): string
return $assoc->mappedBy;
}
- /**
- * @return string|null null if the input value is null
- * @psalm-return class-string|null
- */
+ /** @return string|null null if the input value is null */
public function fullyQualifiedClassName(string|null $className): string|null
{
if (empty($className)) {