Browse files

Fix for non .php files gathered by XDebug

  • Loading branch information...
1 parent 1e8e957 commit e79fdd5f2fafb4831bd39fc84b05a9587078c10b Victor Garcia committed Dec 21, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 PHP/CodeCoverage.php
View
4 PHP/CodeCoverage.php
@@ -459,7 +459,9 @@ protected function initializeFilesThatAreSeenTheFirstTime($data)
// Patch for XDebug bug:
// http://bugs.xdebug.org/bug_view_page.php?bug_id=0000331
preg_match('/.*\.php/', $file, $matches);
- $file = $matches[0];
+ if(isset($matches[0])) {
+ $file = $matches[0];
+ }
if ($this->filter->isFile($file) && !isset($this->data[$file])) {
$this->data[$file] = array();

0 comments on commit e79fdd5

Please sign in to comment.