5.1.0-RC2
版本发布时间: 2024-08-08 11:15:20
cakephp/cakephp最新发布版本:5.1.0(2024-09-14 10:53:46)
The CakePHP core team is happy to announce the second release candidate for CakePHP 5.1.0. Since the RC1 release the core team has added new features, and includes bugfixes from the 5.0 releases. Some of the highlights of this work include:
- CakePHP will no longer check that
zend.assertions
is enabled in non-debug environments. The related ini setting cannot be controlled at the directory level, and cannot be changed in some shared/cloud hosting environments. - Fixed
BehaviorRegistry::removeBehavior()
not clearing method maps. - Fixed deprecations with PHPUnit 11 and made CakePHP base classes compatible with PHPUnit 11.
- Replaced internal usage of
md5
withxxh128
. This impacts hashes used for group prefixes inCache
. - Fixed
IntegrationTestTrait::enableCsrfToken()
causing GET requests that follow a POST request to fail. - Added
toFloat()
,toInt()
,toString()
,toBool()
,toDateTime()
,toDate()
andtoBool()
to make it more ergonomic to convert request data into type-safe values. - The new casting functions are used by
ControllerFactory
to cast parameters for controller actions. - Components can now leverage the dependency injection container in their constructors.
-
Console\Argument::hasArgument()
no longer raises errors when arguments are undefined. -
ResultSetDecorator
is no longer used internally by the ORM. InsteadResultSet
is used directly. - Added support for geospatial types of
GEOMETRY
,POLYGON
,POINT
, andLINESTRING
for database drivers that support them and emulated support for SQLite. - The request returned by
Router::getRequest()
will now be updated after each middleware is processed, improving request mutations in error pages. - The default
valueSeparator
forfind(list)
is now a space instead of;
. This makes results more useful for interfaces.
What's new in 5.1.0
The migration guide has a complete list of what's new in 5.1.0. We recommend you give that page a read when upgrading as it notes the behavior changes present in 5.1.0.
How you Can Help
You can help deliver 5.1.0 by contributing in one of many ways:
- Check the
documentation <https://book.cakephp.org/5.next/en/>
_ for mistakes, outdated, unclear or broken examples. We've been trying to update the documentation as we go, but there are likely examples or sections we've missed. - Try it out! Give CakePHP 5.1.0 a test drive. Let us know how upgrading went and if there were any rough spots.
- File issues for regressions in existing features, or suggest new features. Even if those features don't make it into 5.1.0, we're early in the process of planning 5.2 and value community feedback.
Contributors to 5.1.0-RC2
Thank you to all the contributors that have contributed to this release:
- Adam Halfar
- ADmad
- Jamison Bryant
- jun-taniai
- Mark Scherer
- Mark Story
- othercorey
As always, a huge thanks to all the community members that helped make this release happen by reporting issues and sending pull requests.
1、 cakephp-5-1-0-RC2.zip 10.71MB