-
Notifications
You must be signed in to change notification settings - Fork 3.4k
6.0 Ideas
Mark Scherer edited this page May 19, 2025
·
49 revisions
- Normalize options from snake_case to camelCase (e.g. https://github.com/cakephp/cakephp/blob/b3ba1ef8ddccbb583102d3228c8ccb3138f94ab3/src/Cache/Engine/RedisEngine.php#L74 )
- Remove default inflection of template names to underscored version in
View
. - Consolidate
RoutingCollection::parse()
andRoutingCollection::parseRequest()
into a single method and alsoRoute::parseRequest()
andRouter::parse()
. URL parsing doesn't need the full request instance so consider passing only URL string orUriInterface
instance to the parse methods. - Remove
_
prefix from properties like$_accessible
,$_hidden
and methods like_getMyVirtualField()
. - Remove
_
prefix from methods likeAssociation::_propertyName()
. -
Move global function aliases into a plugin that can be used by folks that need it. Related app issue - Check interface methods ( https://github.com/cakephp/cakephp/commit/6a8198139a169ed4b8ccd23dfbe58d3efae92716 )
- Unify array structure for containing and marshaling associated data #17547
- Fix up remaining BE vs AE english in technical context: "Marshaller" — British English spelling (with -ller). "Marshaler" — American English spelling (with -ler).
- Fix up param/return type mess of StringTemplate::addClass(), maybe also split into string vs array return?
- Clean up remaining
: array|string
return type smells
- Allow extending Collections (https://github.com/cakephp/cakephp/issues/17483)
- Add
ConsoleIoInterface
. Having an interface in console commands would allow us to provide better stub implementations. This would require a rector rule.
-
Move(rejected, see https://github.com/cakephp/bake/pull/905)$this->render();
from\Cake\Controller\Controller
to userland controllers to encourage better return types in controller actions
- Add a CastExpression and automatically cast function expressions when the type is known. This will require making sure all our expression classes have a returnType like FunctionExpression does (https://github.com/cakephp/cakephp/issues/7534)
- Rename
_accessible
topatchable
(https://github.com/cakephp/cakephp/issues/17375) - Attach association joins in order of declaration in fluid query builder (https://github.com/cakephp/cakephp/issues/10746)
-
Consider throwing exception when accessing entity field that does not exist (https://github.com/cakephp/cakephp/issues/15423)(rejected)
- Use Mockery for all new tests which require mocking (https://github.com/cakephp/cakephp/pull/18668)
-
Replace PHPUnit mock provided byMaking the method returngetMockForModel
with Mockery instanceMockery
instance would require users to update all their assertions. - phpunit/phpunit v12 moving forward
- Introduce
localizedDecimal
and fix currentdecimal
validator (https://github.com/cakephp/cakephp/issues/17459)
- Rename
escapeTitle
toescapeContent
as this is not the attribute title, but the content of the link. The rest of the API is already consistent here, only this option is not. (https://github.com/cakephp/cakephp/pull/18334)