Skip to content

Commit

Permalink
Stop iterating when a match is found.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrenssen authored and sebastianbergmann committed Jun 7, 2018
1 parent 0a25ecb commit 703449e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Framework/Constraint/ArraySubset.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ public function evaluate($other, $description = '', $returnResult = false)

if (!empty($recursed)) {
$intersect[$key] = $recursed;

break;
}
}
}
Expand Down

0 comments on commit 703449e

Please sign in to comment.