location['file'] ?? ''; $line = $v->location['line'] ?? 1; // Normalize path separators to forward slashes for Github Actions compatibility $file = str_replace('\\', '/', $file); $type = ($v->severity->value === 'error') ? 'error' : 'warning'; $io->writeln(sprintf( "::%s file=%s,line=%d::[%s] %s", $type, $file, $line, $v->ruleId, $v->message )); } return Command::FAILURE; } }