<?php

namespace Tighten\Linters\Concerns;

trait LintsNonConfigFiles
{
    public static function appliesToPath(string $path): bool
    {
        return strpos($path, '/config/') === false;
    }
}

<?php

namespace Tighten\Linters\Concerns;

trait LintsNonConfigFiles
{
    public static function appliesToPath(string $path): bool
    {
        return strpos($path, DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR) === false;
    }
}

Use DIRECTORY_SEPARATOR in manually created string paths for comparison, so it will work on Windows platforms.
Use DIRECTORY_SEPARATOR in manually created string paths for comparison, so it will work on Windows platforms.
