Yasumi v1.8.0 Release Notes

Release Date: 2018-02-21 // about 6 years ago
  • ๐Ÿ‘ Yasumi v1.8.0 is now available as of Wednesday, February 21st supporting Russia and Estonia thanks to the work of Gedas Lukoลกius.

    ๐Ÿš€ As already announced in my previous post, 1.8.0 will be the last release to officially support PHP5.x. I think it's about time that Yasumi will fully support PHP7 using its performance improvements.

    ๐Ÿ›  Next to Russia and Estonia being part of the family, 1.8.0 includes a good number of fixes and changes as well.

    Implemented enhancements:

    • โž• Added a function that can remove a holiday from the holidays providers (i.e. country/state) list of holidays. This function can be helpful in cases where an existing holiday provider class can be extended but some holidays are not part of the original (extended) provider.
    • ๐Ÿ”„ Changed various functions that have a date parameter to support now objects implementing the DateTimeInterface and objects of the DateTimeImmutable type.
    • โž• Added support for countries where the weekend definition (start and end day) differs from the global definition (Saturday and Sunday).
    • Holiday Provider for Russia. #72 (lukosius)
    • Holiday Provider for Estonia. #71 (lukosius)
    • โž• Added Scrutinizer integration.
    • โšก๏ธ Locale List updated based on CLDR version 32.
    • โž• Added PHPStan static analysis tool to Travis CI #88 (lukosius)
    • ๐Ÿ“š Various inline documentation enhancements. #87 (lukosius)
    • โœ‚ Removed unnecessary typecasts and if-construct. #87 (lukosius)
    • ๐Ÿ“š Updated inline documentation to include correction Exception throws.
    • โœ‚ Removed unnecessary NULL checks.

    Resolved Issues:

    • ๐Ÿ›  Fixed Brazilian Carnaval Day and added Ash Wednesday to Brazilian Holidays. #92 (glauberm)
    • Yasumi listed 01.04.2018 (Easter Sunday) for Spain as an official holiday, however it is not recognized as such. Fix made that recognizes Easter Sunday as being observed (in all regions). #86 (Bastian Konetzny)
    • Corrected reference to the Holiday Provider's ID to be static.
    • ๐Ÿ”„ Changed weekend data property into constant as it is not dynamic (runtime).
    • ๐ŸŒ Corrected the name translation test for the Restoration of Independence Day (Portugal). The test didn't account for the fact that this holiday was abolished and reinstated at some time.
    • โœ… Corrected unit test for Geneva (Switzerland) as the jeune Genevois day was incorrectly asserted as a regional holiday.
    • Corrected the count logic so that in case a holiday is substituted (or observed), it is only counted once.
    • โฌ‡๏ธ Dropped unnecessary arguments of some methods in various Holiday Providers.
    • Corrected Japanese "Green Day" and "Children's Day" to use "Hiragana" instead of Kanji. #80 (cookie-maker)