From 3e37a7b59fdf02f2d9e86d2ccd4b4ac1e1ef5c41 Mon Sep 17 00:00:00 2001 From: Andrejs Stepanovs Date: Sat, 17 May 2014 15:02:46 +0200 Subject: [PATCH] hhvm code coverage fix. Lines to be ignored will process only existing files --- src/CodeCoverage/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CodeCoverage/Parser.php b/src/CodeCoverage/Parser.php index aa7007a67..0fdda0684 100644 --- a/src/CodeCoverage/Parser.php +++ b/src/CodeCoverage/Parser.php @@ -127,7 +127,7 @@ public function getLinesToBeIgnored($filename) $this->ignoredLines[$filename] = array(); $ignore = false; $stop = false; - $lines = file($filename); + $lines = file_exists($filename) ? file($filename) : array(); $numLines = count($lines); foreach ($lines as $index => $line) {