From e3606e0cef30924daafe0d40a6d0ec1802c7ae4a Mon Sep 17 00:00:00 2001 From: Julien Tessier Date: Thu, 20 Feb 2020 09:05:09 +0400 Subject: [PATCH] Reunion: Remove state-specific data inherited from France --- src/Provider/RE.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Provider/RE.php b/src/Provider/RE.php index 2e1260c..b711769 100644 --- a/src/Provider/RE.php +++ b/src/Provider/RE.php @@ -19,6 +19,11 @@ public function getHolidaysByYear($year) { // sames rules as France $holidays = parent::getHolidaysByYear($year); + + // remove holidays for specific states + foreach($holidays as $date => $holiday) { + if (isset($holiday['states']) && $holiday['states']) unset($holidays[$date]); + } // but an additional date $holidays['12-20'] = $this->createData('Abolition de l\'Esclavage');