Skip to content

Commit

Permalink
update invalid region exception
Browse files Browse the repository at this point in the history
  • Loading branch information
pisyek committed Feb 2, 2024
1 parent ab27a90 commit 698a1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Countries/Malaysia.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function variableHolidays(int $year): array
protected function regionHolidays(int $year): array
{
if ($this->region && !$this->validRegion($this->region)) {
throw InvalidRegion::unsupportedRegion($this->region);
throw InvalidRegion::notFound($this->region);
}

return $this->holidaysByRegion($year);
Expand Down

0 comments on commit 698a1c2

Please sign in to comment.