From 903203293241e6565e900e4db9d026d9d34f6f72 Mon Sep 17 00:00:00 2001 From: Alberto Peripolli Date: Thu, 23 Jan 2025 17:36:16 +0100 Subject: [PATCH] fix typo --- src/Period.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Period.php b/src/Period.php index 9098589..217bde2 100644 --- a/src/Period.php +++ b/src/Period.php @@ -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]; }