Yasumi v2.4.0 Release Notes
Release Date: 2021-05-09 // almost 3 years ago-
➕ Added
- Georgia Provider #245 (Zurab Sardarov)
Pentecost (Sunday) to Germany #225 (Patrick-Root)
✅ Infection PHP to perform mutation testing.
PHPStan to the dependencies allowing for local analysis.
🚀
.gitattributes
file to reduce the size of a release package #237 (Stéphane)
🔄 Changed
- ⏱ Rescheduled exceptional Japanese holidays for Olympic Games 2020 after COVID-19 #240 (tanakahisateru)
🔨 Some improvements/refactoring of the Swiss holiday providers (including source references) #233 (Quentin Ligier)
👍 Allow the
WEEKEND_DATA
constant in provider classes to be overridden. #235 (Mahmood Dhia)⬆️ Upgraded PHPUnit's XML configuration.
🔨 Refactored removing the magic numbers for the lower and upper limits of the calendar year.
⚡️ Reformatted code using new/updated Code Styling rules.
Hardened error handling of json functions.
⚡️ Updated Copyright year.
🛠 Fixed
- ✅ The test for North West Territories (Canada) in that the National Indigenous Peoples Day was considered for all years: it is only celebrated since 1996.
- ✅ The test for NovaScotia (Canada) in that novaScotiaHeritageDay was considered for all years: it is only celebrated since 2015.
- ✅ The test for Ontario (Canada) in that IslanderDay was considered for all years: it is only celebrated since 2009.
- ⏱ The test for Marine Day (Japan) as the rescheduled day was moved to 2021 (due to the COVID-19 pandemic).
Typo for Estonian Day of Restoration of Independence #228 (Reijo Vosu)
✅ The substitute holiday unit test as the use of the
at()
method will be deprecated in PHPUnit 10.Incorrect invocation of
Fribourg::calculateBerchtoldsTag()
andFribourg::calculateDecember26th
(Switzerland)👉 Use proper parameter and return type hinting
Replaced the
mt_rand
function with therandom_int
function as it is cryptographically insecure.Some static functions were used as if they are object functions.
✂ Removed
- 💅 Travis/StyleCI/Scrutinizer services replaced by GitHub Actions.
- 👍 PHP 7.2 Support (PHP 7.2 is EOL)
- Faker library as it has been sunset #238 (Stéphane)
- Native function invocations.
- Various undefined class references, unused imports, etc.
- Unnecessary curly braces in strings,
continue
keyword in while loops, typecasting.