From 610acbbfd214ab5ed30e017ef936ad3aec427a23 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Thu, 28 Sep 2023 14:18:54 +0200 Subject: [PATCH] Remove superfluous file_get_contents() call --- src/Analyser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);