diff --git a/src/Analyser.php b/src/Analyser.php index 3bbfebf..36fe135 100644 --- a/src/Analyser.php +++ b/src/Analyser.php @@ -122,7 +122,7 @@ private function analyseFile(string $file): array assert($lines >= 0); try { - $nodes = $parser->parse(file_get_contents($file)); + $nodes = $parser->parse($source); assert($nodes !== null);