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 to de . #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.