Skip to content

Commit

Permalink
fix unset keys
Browse files Browse the repository at this point in the history
  • Loading branch information
daltonbennett04 committed Jul 23, 2024
1 parent f5c7a88 commit 3c3366f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Output/XUnitOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,10 @@ public function shouldEmit($fileName, $name, $lineNumber, float|int|null $metric
if (isset($entry['emit']) && !self::emitPatternMatches($name, $entry['emit'])) {
continue;
}
$glob = $entry['glob'];
if (isset($glob) && !$this->fileMatchesArrayOrString($fileName, $glob)) {
if (isset($entry['glob']) && !$this->fileMatchesArrayOrString($fileName, $entry['glob'])) {
continue;
}
$ignore = $entry['ignore'];
if (isset($ignore) && $this->fileMatchesArrayOrString($fileName, $glob)) {
if (isset($entry['ignore']) && $this->fileMatchesArrayOrString($fileName, $entry['ignore'])) {
continue;
}
if (
Expand Down

0 comments on commit 3c3366f

Please sign in to comment.