Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mcustiel/phiremock-server
Browse files Browse the repository at this point in the history
  • Loading branch information
mcustiel committed Mar 31, 2023
2 parents a1a788e + be8fb09 commit 45de850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Actions/SearchRequestAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ private function searchForMatchingExpectation(ServerRequestInterface $request):

private function getNextMatchingExpectation(?Expectation $lastFound, ServerRequestInterface $request, Expectation $expectation): ?Expectation
{
if ($this->comparator->equals($request, $expectation)) {
if (null === $lastFound || $expectation->getPriority() > $lastFound->getPriority()) {
if (null === $lastFound || $expectation->getPriority() > $lastFound->getPriority()) {
if ($this->comparator->equals($request, $expectation)) {
$lastFound = $expectation;
}
}
Expand Down

0 comments on commit 45de850

Please sign in to comment.