Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
trippo committed Jan 23, 2025
1 parent 27c26d9 commit 9032032
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Period.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ private function getExceptionRate(string $level, ?string $postcode): ?float
}

foreach ($this->exceptions as $exception) {
$exception = (array) $exception;
if (preg_match('/^'.$exception['postcode'].'$/', $postcode)) {
return $exception[$level] ?? $exception[Rates::RATE_STANDARD];
}
Expand Down

0 comments on commit 9032032

Please sign in to comment.