<?xml version="1.0"?>
<psalm
    errorLevel="1"
    resolveFromConfigFile="true"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="https://getpsalm.org/schema/config"
    xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
    findUnusedBaselineEntry="true"
    findUnusedCode="false"
>
    <projectFiles>
        <directory name="lib/Doctrine/Deprecations" />
        <directory name="tests/Doctrine/Deprecations" />
        <ignoreFiles>
            <directory name="vendor" />
        </ignoreFiles>
    </projectFiles>
    <plugins>
        <pluginClass class="Psalm\PhpUnitPlugin\Plugin"/>
    </plugins>
    <issueHandlers>
        <DeprecatedMethod>
            <errorLevel type="suppress">
                <!-- Remove when dropping support for PHPUnit 9.6 -->
                <referencedMethod name="PHPUnit\Framework\TestCase::expectDeprecation"/>
                <referencedMethod name="PHPUnit\Framework\TestCase::expectDeprecationMessage"/>
            </errorLevel>
        </DeprecatedMethod>
    </issueHandlers>
</psalm>
