<?xml version="1.0"?>
<psalm
        checkForThrowsDocblock="true"
        checkForThrowsInGlobalScope="true"
        disableSuppressAll="true"
        ensureArrayStringOffsetsExist="true"
        errorLevel="1"
        findUnusedBaselineEntry="true"
        findUnusedCode="true"
        findUnusedPsalmSuppress="true"
        findUnusedVariablesAndParams="true"
        memoizeMethodCallResults="true"
        sealAllMethods="true"
        sealAllProperties="true"
        cacheDirectory="var/psalm"
        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"/>
            <directory name="var"/>
        </ignoreFiles>
    </projectFiles>

    <stubs>
        <file name="vendor/onepix/wordpress-stubs/wordpress-stubs.php"/>
    </stubs>

    <plugins>
        <pluginClass class="PsalmWordPress\Plugin"/>
    </plugins>

    <issueHandlers>
        <Trace errorLevel="error"/>

        <PossiblyUnusedReturnValue errorLevel="suppress" />
        <PossiblyUnusedMethod errorLevel="suppress"/>
        <PropertyNotSetInConstructor errorLevel="suppress"/>
        <MixedAssignment errorLevel="suppress"/>

        <UnusedClass errorLevel="suppress" />
    </issueHandlers>
</psalm>
