Skip to content

Commit

Permalink
Mute psalm Undefined Class errors for classes that has been removed i…
Browse files Browse the repository at this point in the history
…n DBAL 3.x.

Partially fixes doctrine#8884
  • Loading branch information
scyzoryck committed Aug 10, 2021
1 parent f980682 commit c7b0281
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use BadMethodCallException;
use Doctrine\Common\Collections\Criteria;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Exception;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\PersistentCollection;
use Doctrine\ORM\Persisters\SqlValueVisitor;
Expand Down Expand Up @@ -756,6 +757,7 @@ private function getOrderingSql(Criteria $criteria, ClassMetadata $targetClass):

/**
* @throws DBALException
* @throws Exception
*/
private function getLimitSql(Criteria $criteria): string
{
Expand Down
10 changes: 10 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,17 @@
<referencedClass name="Doctrine\Common\Cache\ApcCache"/>
<referencedClass name="Doctrine\Common\Cache\ArrayCache"/>
<referencedClass name="Doctrine\Common\Cache\XcacheCache"/>
<referencedClass name="Doctrine\DBAL\Driver\ResultStatement"/>
<referencedClass name="Doctrine\DBAL\ForwardCompatibility\Result"/>
<referencedClass name="Doctrine\DBAL\Exception"/>
<referencedClass name="Doctrine\DBAL\DBALException"/>
<referencedClass name="Doctrine\DBAL\Platforms\PostgreSqlPlatform"/>
</errorLevel>
</UndefinedClass>
<DeprecatedMethod>
<errorLevel type="suppress">
<referencedMethod name="Doctrine\DBAL\Connection::getSchemaManager"/>
</errorLevel>
</DeprecatedMethod>
</issueHandlers>
</psalm>

0 comments on commit c7b0281

Please sign in to comment.