Skip to content

Commit 5b08c5f

Browse files
committed
Add notes for 5.4.0-RC2
1 parent 1291b4c commit 5b08c5f

2 files changed

Lines changed: 98 additions & 0 deletions

File tree

‎2026/06/27/cakephp_540RC2.rst‎

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
CakePHP 5.4.0-RC2 Released
2+
============================
3+
4+
The CakePHP core team is happy to announce the second release candidate for
5+
CakePHP 5.4.0. Since the previous release candidate, the following changes have
6+
been made:
7+
8+
- SameSite cookie default values apply to all session presets.
9+
- FormHelper now uses the HTML ``hidden`` attribute for the containing div
10+
created by ``hiddenBlock``. The previous inline styles were incompatible with
11+
strict Content-Security-Policy rules.
12+
- The cache keys used by ``I18n`` are now configurable either with a string or
13+
callback that creates a prefix to cahe entries enabling per tenant
14+
translations.
15+
- ``JsonStreamResponse`` was added. This response class provides better memory
16+
efficiency for streaming JSON responses compatible with generators and
17+
``ResultSets``.
18+
- Improved console error handling and help generation on invalid command names.
19+
- ``ConsoleOutput`` no longer attempts to write to closed streams, which caused
20+
fatal errors.
21+
- Improved EnumLabel extraction by ``i18n extract`` command.
22+
- ``DateTimeType`` accepts date-only Y-m-d strings, and sets the time to
23+
midnight instead of marking the data invalid.
24+
- Entities from other tables are now rejected during persistence and
25+
marshalling. This is a safety improvement that prevents mistakes.
26+
- Added a ``Lock`` component that provides an engine based interface for
27+
building distributed (or single-machine) locks for preventing race conditions
28+
around multiple processes accessing shared resources.
29+
- Added ``Connection.afterCommit`` event for outermost-commit hooks operations.
30+
- Improved strictness in template path validation, preventing template path
31+
escapes.
32+
- Added ``LoggedQuery::setRedactor()`` to enable log scrubbing. Applications
33+
that want to prevent PII leaking into logs can attach scrubbing logic to
34+
query logging.
35+
- ``CommandCollection::discoverDirectory()`` was added.
36+
- ``BasePlugin`` and ``BaseApplication`` now have an ``eventListeners()`` hook
37+
method. This method should return an array of global event listeners for your
38+
plugin or application.
39+
- Added ``Table::findUnhydrated()`` and ``UnhydratedSelectQuery`` for type-safe
40+
non-hydrated read queries.
41+
- ``MissingRouteException`` now includes the passed parameters of the routes
42+
that fail for parameter validation checks, making debugging simpler.
43+
- Improved type-hinting in many classes.
44+
- ``RedisEngine`` and ``MemcacheEngine`` support an ``allowedClasses`` option to
45+
limit the classes that can data can be unserialized into.
46+
- ``Http\Client`` now respects ``curl.cainfo`` as a default value if defined in ``php.ini``.
47+
48+
What's new in 5.4.0
49+
-------------------
50+
51+
The `migration guide
52+
<https://book.cakephp.org/5.next/en/appendices/5-4-migration-guide.html>`_ has
53+
a complete list of what's new in 5.4.0. We recommend you give that page a read
54+
when upgrading as it notes the behavior changes present in 5.4.0.
55+
56+
How you Can Help
57+
----------------
58+
59+
You can help deliver 5.4.0 by contributing in one of many ways:
60+
61+
#. Check the `documentation <https://book.cakephp.org/5.next/en/>`_ for mistakes,
62+
outdated, unclear or broken examples. We've been trying to update the
63+
documentation as we go, but there are likely examples or sections we've
64+
missed.
65+
#. Try it out! Give CakePHP 5.4.0 a test drive. Let us know how upgrading
66+
went and if there were any rough spots.
67+
#. File issues for regressions in existing features, or suggest new features.
68+
Even if those features don't make it into 5.4.0, we're early in the process
69+
of planning 5.5 and 6.0 and value community feedback.
70+
71+
Contributors to 5.4.0-RC2
72+
-------------------------
73+
74+
Thank you to all the contributors that have contributed to this release:
75+
76+
- Abdul Malik Ikhsan
77+
- ADmad
78+
- gillux
79+
- Jamison Bryant
80+
- Juan Pablo Ramirez
81+
- Kevin Pfeifer
82+
- Mark Scherer
83+
- Mark Story
84+
- Nicos Panayides
85+
- othercorey
86+
- Stuart
87+
- XananasX
88+
89+
As always, a huge thanks to all the community members that helped make this
90+
release happen by reporting issues and sending pull requests.
91+
92+
Download a `packaged release on github
93+
<https://github.com/cakephp/cakephp/releases>`_.
94+
95+
.. author:: markstory
96+
.. categories:: news
97+
.. tags:: release,news

‎master.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Sitemap
44
.. toctree::
55
:maxdepth: 1
66

7+
2026/06/27/cakephp_540RC2
78
2026/05/08/cakephp_536
89
2026/05/08/cakephp_535
910
2026/04/25/cakephp_540RC1

0 commit comments

Comments
 (0)