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');