Repository navigation
Conversation
Add undocumented breaking changes, behavior changes and new features found by comparing the cakephp 6.x branch against 5.next, list impactful removed deprecations in the upgrade guide, and update stale signatures for Text::parseFileSize(), HtmlHelper::tableCells() and the PHPUnit version.
LordSimal
force-pushed
the
docs/6.x-migration-guide-gaps
branch
from
November 29, 2026 11:51
aab72d1 to
2ebd939
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the 6.0 changes that the migration guide didn't cover yet. I found them by comparing
cakephp/cakephp6.x against5.next, then checked each item against the 6.x source.Besides the migration guide, this PR:
Text::parseFileSize()andHtmlHelper::tableCells()signatures,Source changes
Behavior changes / dependencies
#[NoDiscard]on immutablewith*()methods: PHP 8.5 #[NoDiscard] attribute in the HTTP classes. cakephp#19723parseDsn()URL-decodes all components: Fix parseDsn() to URL-decode username and password credentials and database name cakephp#19603Renames / removals
EntityTrait::$_fields→$dynamicFields: 6.0 - Entity props with hooks cakephp#19381Cake\ORM\Queryalias removed: Drop references to the deleted Cake\ORM\Query class cakephp#19435DefinitionContainerInterface→ContainerInterface,has()vshasDefinition(): 6.x removeleague/containercakephp#19559Method signatures
void: Add missing parameter/return type cakephp#18660Table::deleteManyOrFail()returnsvoid: 6.0: Change Table::deleteManyOrFail() return type to void cakephp#19433ValidationSet::allowEmpty()/requirePresence()takeClosure: Narrow ValidationSet callable types to Closure cakephp#19543@methodannotations promoted to interface methods: Move@methodannotations to actual interface methods cakephp#19121, Code cleanup cakephp#19161, Fix PHPStan issues and clean up baselines cakephp#19120CollectionInterface::groupBy($preserveKeys): 6.x: add $preserveKeys parameter to CollectionInterface::groupBy() cakephp#19842Table::updateAll()/deleteAll()/exists()condition types: Widen conditions type to ExpressionInterface in Table methods cakephp#19227Console / Command
ConsoleIoInterface: ConsoleIo to interface. cakephp#18382, Adjust commands to use IO interface cakephp#18391, Fix argument type after 5.next merge. cakephp#18910CommandInterface::run(),BaseCommandhooks,executeCommand(): 6.x: command refactor cakephp#18983ConsoleInputArgumentarray constructor removed: Remove argument overloading cakephp#18868Core / Event
StaticConfigTrait::initDsnClassMap(): Add dsnClassMap property to StaticConfigTrait cakephp#19257, cakephp/cakephp@377f101560pluginEvents()removed: cakephp/cakephp@d9c5dbaa82EventListno longerArrayAccess: Remove deprecated code cakephp#19147EventManager::callListener()takes aClosure: Remove argument overloading in EventMangerInterface::on() cakephp#19068Database
FunctionsBuilder::cast()returnsCastExpression, typed comparison results: Add CastExpression, implement TypedResultInterface cakephp#18989Query::newExpr()removed: cakephp/cakephp@a48080873cTypeFactory::getMap(),ConstraintsInterface,toQuarter(true),Socket::$connected: Remove deprecated code cakephp#19013SchemaDialectrework: Code cleanup cakephp#19161Error
dd(): 6.x: adjust dd() to be variadic cakephp#19445ErrorLoggerInterfaceextends PSR-3: Make ErrorLoggerInterface extend LoggerInterface. cakephp#18078Http
$datatypes,sendRequest()/ factory return types, cookie jar following RFC 6265,ResponseEmitter: 6.x: portlaminas/diactorosto Cake + rework HTTP package cakephp#19691createAuth()/Digest$optionsremoved: Fix PHPStan issues and clean up baselines cakephp#19120Client\Message::cookies()removed: remove underscores from http properties cakephp#19005HttpException::setHeader()requires$value: Update signature of HttpException::setHeader() cakephp#18966I18n / Utility
Number::DEFAULT_LOCALEremoved: Drop Number::DEFAULT_LOCALE. cakephp#18308Text::parseFileSize()default: Clean up parseFileSize() signature. cakephp#19052ORM
disableHydration()removed: cleanup old unhydrated API cakephp#19518associatedoption key handling: unify array structure for marshalling and containing cakephp#19553Associationconstructor /AssociationCollection::load(): Update signature of Association::__construct() cakephp#18862getDisplayField()not nullable: getDisplayField cannot return null. cakephp#18342Router
plugin()parameter swap,$params, requiredClosurecallbacks: Remove argument overloading from RouteBuilder methods cakephp#19095connect()no longer acceptsRoute,$templateparameter: RouteBuilder: Unify connect() argument naming and add add() method cakephp#19260Routeproperty visibility,hostMatches(),persistParams(): Improve type inference in Route class cakephp#19811RedirectRoute::$redirect: Cleanup code for redirect route. cakephp#19116Validation
ValidationRulerewrite, providers resolved inadd(): Refactor the validation process. cakephp#18313View
inputContainertemplate ofFormHelper. cakephp#18162title→content: cakephp/cakephp@c1451ec87bCell::__construct()final: Improve type inference cakephp#19803MissingTemplateException/MissingElementExceptionconstructors: Make MissingTemplateException constructor string-only and add constructor args for MissingElementException cakephp#19555HtmlHelper::tableCells()boolean shortcuts removed: Remove argument overloading cakephp#19757StringTemplate::addClass()array only: Fix property name cakephp#19055Mailer
Mailer::$nameremoved: 6.x cleanup cakephp#19376New features
config/routes.php: Make loading of app's routes.php file optional. cakephp#19665Notes for reviewers
src/I18n/composer.jsonin cakephp still requirescakephp/chronos: ^3.3, while the rootcomposer.jsonrequires 4.x.🤖 Generated with Claude Code