src/Skipper.php
private function fileMatchesPattern(SmartFileInfo $smartFileInfo, string $ignoredPath): bool
    {
        $ignoredPath = $this->normalizeForFnmatch($ignoredPath);

        return $smartFileInfo->endsWith($ignoredPath) || $smartFileInfo->fnmatches($ignoredPath);
    }
private function fileMatchesPattern(SmartFileInfo $smartFileInfo, string $ignoredPath): bool
    {
        $ignoredPath = $this->normalizeForFnmatch($ignoredPath);

        return $smartFileInfo->endsWith($ignoredPath) || $smartFileInfo->fnmatches($ignoredPath);
    }
Supports both relative and absolute $file path.
They differ for PHP-CS-Fixer and PHP_CodeSniffer.