We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e8e957 commit e79fdd5Copy full SHA for e79fdd5
PHP/CodeCoverage.php
@@ -459,7 +459,9 @@ protected function initializeFilesThatAreSeenTheFirstTime($data)
459
// Patch for XDebug bug:
460
// http://bugs.xdebug.org/bug_view_page.php?bug_id=0000331
461
preg_match('/.*\.php/', $file, $matches);
462
- $file = $matches[0];
+ if(isset($matches[0])) {
463
+ $file = $matches[0];
464
+ }
465
466
if ($this->filter->isFile($file) && !isset($this->data[$file])) {
467
$this->data[$file] = array();
0 commit comments