<?xml version="1.0"?>
<psalm
        errorLevel="2"
        phpVersion="8.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"
>
    <projectFiles>
        <directory name="examples" />
        <directory name="src" />
    </projectFiles>

    <issueHandlers>
        <ForbiddenCode>
            <errorLevel type="suppress">
                <directory name="examples"/>
            </errorLevel>
        </ForbiddenCode>

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

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