Yasumi v2.2.0 Release Notes
Release Date: 2019-10-06 // over 4 years ago-
โ Added
- Holiday providers for England, Wales, Scotland and Northern Ireland #166 (c960657)
- Holiday Provider for South Korea. #156 (blood72)
- ๐ Translation for the Easter holiday for the
fr_FR
locale #146 (pioc92) - ๐ Translation for the Pentecost holiday for the
fr_FR
locale #145 (pioc92) - Late Summer Bank Holiday in the United Kingdom prior to 1965 #161 (c960657)
- Observance holidays for Sweden #172 (c960657)
- Created a special subclass of Holiday for substitute holidays #162 (c960657)
- โ Added additional code style fixers and aligning StyleCI settings with PHP-CS.
- Included extra requirement for some PHP Extensions in the composer file.
๐ Changed
- โก๏ธ Updated the translation for the All Saints holiday for the
fr_FR
locale #152 (pioc92) - โก๏ธ Updated the translation for the Armistice holiday for the
fr_FR
locale #154 (pioc92) - โก๏ธ Updated the translation for the Victory in Europe holiday for the
fr_FR
locale #153 (pioc92) - โก๏ธ Updated the translation for the Assumption of Mary holiday for the
fr_FR
locale #155 (pioc92) - โก๏ธ Updated the translation for Christmas Day for the
nl_NL
locale #160 (pioc92) - ๐ Reordered arguments to Yoda style.
- Replaced null checks by appropriate instance / type checks.
- ๐ Moved default method values to method body as parameters should be nullable.
- Applying the use of strict types. Strict typing allows for improved readability, maintainability, and less prone to bugs and security vulnerabilities.
- ๐ PHP 7.1 is allowed to fail for Travis-CI due to the fact PHPUnit 8 requires PHP >= 7.2. PHP 7.1 support will be dropped in Yasumi once 7.1 has reached its end of life (December 2019).
- Code using class imports rather than Fully Qualified Class names.
- โฌ๏ธ Upgraded to PHPUnit 8.
- ๐ป Replaced the standard 'InvalidArgumentException' when an invalid year or holiday provider is given by a new exception for each of these two situations separately ('InvalidYearException' and 'ProviderNotFoundException'). This allows you to better distinguish which exception may occur when instantiating the Yasumi class. #95 (qneyrat)
- ๐จ Refactored the AbstractProvider::count method to use the newly added SubstituteHoliday class.
- ๐ Fallback support added to getName() to allow e.g. fallback from
de_AT
tode
. #176 (c960657)
๐ Fixed
- Late Summer Bank Holiday in 1968 and 1969 in United Kingdom #161 (c960657)
- ๐ Fixed one-off exceptions for May Day Bank Holiday in 1995 and 2020 and Spring Bank Holiday in 2002 and 2012 (United Kingdom) #160 (c960657)
- ๐ Fixed revoked holidays in Portugal in 2013-2015 #163 (c960657)
- ๐ Fixed spelling issues in the Danish translation for Second Christmas Day. #167 (c960657)
- Corpus Christi is official in Poland #168 (c960657)
- Liberation Day is official in the Netherlands #169 (c960657)
- โ๏ธ Typos in Easter Monday and Republic Day for the 'it_IT' locale #171 (c960657)
- Corrected the name of the Emperors Birthday function and variable.
- Good Friday is not official in Brazil #174 (c960657)
โ Removed
- Unused constants.