diff --git a/src/Linter.php b/src/Linter.php index 6397eea5..c8f006ad 100644 --- a/src/Linter.php +++ b/src/Linter.php @@ -119,7 +119,7 @@ public function lint($files = [], $cache = true) unset($running[$filename]); if ($lint->hasSyntaxError()) { $processCallback('error', $item['file']); - $errors[$filename] = array_merge(['file' => $filename], $lint->getSyntaxError()); + $errors[$filename] = array_merge(['file' => $filename, 'file_name' => $relativePathname], $lint->getSyntaxError()); } else { $newCache[$item['relativePath']] = md5_file($filename); $processCallback('ok', $item['file']);