[PR #8906] Mute psalm Undefined Class errors for classes that has been removed i… #11244

Open
opened 2026-01-22 16:10:09 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/8906

State: closed
Merged: No


Mute following psalm errors:

ERROR: UndefinedDocblockClass - lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:110:15 - Docblock-defined class or interface Doctrine\DBAL\Driver\ResultStatement does not exist (see https://psalm.dev/200)
     * @param Result|ResultStatement $stmt

ERROR: UndefinedDocblockClass - lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php:758:16 - Docblock-defined class or interface Doctrine\DBAL\DBALException does not exist (see https://psalm.dev/200)
     * @throws DBALException

ERROR: DeprecatedMethod - lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php:90:39 - The method Doctrine\DBAL\Connection::getSchemaManager has been marked as deprecated (see https://psalm.dev/001)
                $em->getConnection()->getSchemaManager()

ERROR: UndefinedClass - lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php:118:43 - Class or interface Doctrine\DBAL\Platforms\PostgreSqlPlatform does not exist (see https://psalm.dev/019)
        return $this->platform instanceof PostgreSqlPlatform

Added @throws annotation with exception class that replaced DBALException.

**Original Pull Request:** https://github.com/doctrine/orm/pull/8906 **State:** closed **Merged:** No --- Mute following psalm errors: ``` ERROR: UndefinedDocblockClass - lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:110:15 - Docblock-defined class or interface Doctrine\DBAL\Driver\ResultStatement does not exist (see https://psalm.dev/200) * @param Result|ResultStatement $stmt ERROR: UndefinedDocblockClass - lib/Doctrine/ORM/Persisters/Collection/ManyToManyPersister.php:758:16 - Docblock-defined class or interface Doctrine\DBAL\DBALException does not exist (see https://psalm.dev/200) * @throws DBALException ERROR: DeprecatedMethod - lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php:90:39 - The method Doctrine\DBAL\Connection::getSchemaManager has been marked as deprecated (see https://psalm.dev/001) $em->getConnection()->getSchemaManager() ERROR: UndefinedClass - lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php:118:43 - Class or interface Doctrine\DBAL\Platforms\PostgreSqlPlatform does not exist (see https://psalm.dev/019) return $this->platform instanceof PostgreSqlPlatform ``` Added @throws annotation with exception class that replaced DBALException.
admin added the pull-request label 2026-01-22 16:10:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#11244