CakePHP v4.0.4 Release Notes

Release Date: 2020-02-22 // about 4 years ago
  • ๐Ÿš€ The CakePHP core team is happy to announce the immediate availability of CakePHP 4.0.4. This is a maintenance release for the 4.0 branch that fixes several community reported issues.

    ๐Ÿ›  Bugfixes

    ๐Ÿ‘€ You can expect the following changes in 4.0.4. See the changelog for every commit.

    • ๐Ÿ”€ Http\Response::$_contenType was removed as it was often wrong and out of sync with the getHeader('Content-Type') value.
    • ๐Ÿ‘ NumberHelper::precision() had the $options parameter added so it can better wrap Number::precision().
    • โž• Add timestamptimezone mapping to FormHelper and DateTimeWidget.
    • โœ… IntegrationTestCaseTrait once again raises exceptions when disableErrorHandlerMiddleware() is used.
    • datetime-local values are rendered with milliseconds by DateTimeWidget only when step size is less than 1.
    • ๐Ÿ‘Œ Improved API documentation.
    • ๐Ÿ‘Œ Improved missing template exception messages. They now list out the full path of every attempted file.
    • โšก๏ธ CounterCacheBehavior no longer attempts to update values when the foreign key is null.
    • ๐Ÿ‘ป Loading optional associations with leftJoinWith() and contain() no longer raises an exception about missing association data.
    • TextHelper::autoParagraph() now accepts null.
    • HtmlHelper::para() now accepts null.
    • ๐Ÿ’… Validation::decimal() now handles Polish formatted numbers correctly.
    • HasMany associations now set invalid messages and errors on the parent entity when non-atomic saves fail.
    • ๐Ÿ‘Œ Improved missing database exception message.
    • Logged fatal errors now include the file and line position.

    Contributors to 4.0.4

    ๐Ÿš€ Thank you to all the contributors that helped make this release happen:

    • ADmad
    • Corey Taylor
    • Justin Slamka
    • Mark Scherer
    • Mark Story
    • Michal
    • Rachman Chavik
    • Remi Collet
    • Victor Eduardo de Assis

    ๐Ÿ“š As always, we would like to thank all the contributors that opened issues, created pull requests or updated the documentation.