Permalink
Browse files

Only invoke getLinesToBeIgnored() for files that actually exist / are…

… actually files
  • Loading branch information...
1 parent 329adfd commit 17069ac6d9ae77ea342d4aee48501f7c03e9c3a5 @sebastianbergmann committed Mar 29, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 PHP/CodeCoverage.php
@@ -538,6 +538,10 @@ protected function applyListsFilter(&$data)
protected function applyIgnoredLinesFilter(&$data)
{
foreach (array_keys($data) as $filename) {
+ if (!is_file($filename)) {
+ continue;
+ }
+
foreach ($this->getLinesToBeIgnored($filename) as $line) {
unset($data[$filename][$line]);
}

0 comments on commit 17069ac

Please sign in to comment.