<?xml version="1.0"?>
<psalm
    errorLevel="2"
    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"
>
    <projectFiles>
        <directory name="src"/>
        <ignoreFiles>
            <directory name="vendor"/>
        </ignoreFiles>
    </projectFiles>

    <issueHandlers>
        <ClassMustBeFinal>
            <errorLevel type="suppress">
                <file name="src/PostgresQueryError.php"/>
            </errorLevel>
        </ClassMustBeFinal>

        <MethodSignatureMismatch>
            <errorLevel type="suppress">
                <file name="src/Internal/AbstractHandle.php"/>
            </errorLevel>
        </MethodSignatureMismatch>

        <MissingClosureReturnType>
            <errorLevel type="suppress">
                <directory name="src"/>
                <directory name="test"/>
            </errorLevel>
        </MissingClosureReturnType>

        <PossiblyUnusedMethod>
            <errorLevel type="suppress">
                <directory name="src"/>
            </errorLevel>
        </PossiblyUnusedMethod>

        <PossiblyUnusedProperty>
            <errorLevel type="suppress">
                <file name="src/PostgresNotification.php"/>
            </errorLevel>
        </PossiblyUnusedProperty>

        <RiskyTruthyFalsyComparison>
            <errorLevel type="suppress">
                <directory name="src"/>
            </errorLevel>
        </RiskyTruthyFalsyComparison>

        <UnsupportedPropertyReferenceUsage>
            <errorLevel type="suppress">
                <directory name="src"/>
            </errorLevel>
        </UnsupportedPropertyReferenceUsage>

        <UnusedClass>
            <errorLevel type="suppress">
                <directory name="src"/>
            </errorLevel>
        </UnusedClass>
    </issueHandlers>
</psalm>
