Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… actually files
  • Loading branch information...
commit 17069ac6d9ae77ea342d4aee48501f7c03e9c3a5 1 parent 329adfd
Sebastian Bergmann authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 PHP/CodeCoverage.php
4 PHP/CodeCoverage.php
View
@@ -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]);
}
Please sign in to comment.
Something went wrong with that request. Please try again.