Deprecated
Table of Contents
Cache.php
| Line | Element | Reason |
|---|---|---|
| 207 | Cache::engine() |
Shell.php
| Line | Element | Reason |
|---|---|---|
| 43 | Shell | ShellDispatcher and Shell will be removed in 5.0 |
ShellDispatcher.php
| Line | Element | Reason |
|---|---|---|
| 35 | ShellDispatcher | ShellDispatcher and Shell will be removed in 5.0 |
AuthComponent.php
| Line | Element | Reason |
|---|---|---|
| 47 | AuthComponent | Use the cakephp/authentication and cakephp/authorization plugins instead. |
PaginatorComponent.php
| Line | Element | Reason |
|---|---|---|
| 40 | PaginatorComponent | Use Cake\Datasource\Paging\Paginator directly. |
RequestHandlerComponent.php
| Line | Element | Reason |
|---|---|---|
| 45 | RequestHandlerComponent | See the 4.4 migration guide for how to upgrade. https://book.cakephp.org/4/en/appendices/4-4-migration-guide.html#requesthandlercomponent |
| 258 | RequestHandlerComponent::accepts() | Use ContentTypeNegotiation::prefersChoice() or Controller::getViewClasses() instead. |
| 346 | RequestHandlerComponent::prefers() | Use Controller::getViewClasses() instead. |
SecurityComponent.php
| Line | Element | Reason |
|---|---|---|
| 43 | SecurityComponent | Use instead, for form tampering protection or to enforce use of HTTPS (SSL) for requests. |
Controller.php
| Line | Element | Reason |
|---|---|---|
| 724 | Controller::setAction() | Refactor your code use |
ClassLoader.php
| Line | Element | Reason |
|---|---|---|
| 23 | ClassLoader | Use composer to generate autoload files instead. |
CakeException.php
| Line | Element | Reason |
|---|---|---|
| 98 | CakeException::responseHeader() | Use |
Connection.php
| Line | Element | Reason |
|---|---|---|
| 192 | Connection::setDriver() | Setting the driver is deprecated. Use the connection config instead. |
| 696 | Connection::supportsDynamicConstraints() | Fixtures no longer dynamically drop and create constraints. |
Mysql.php
| Line | Element | Reason |
|---|---|---|
| 312 | Mysql::supportsCTEs() | Use |
| 325 | Mysql::supportsNativeJson() | Use |
| 338 | Mysql::supportsWindowFunctions() | Use |
Sqlite.php
| Line | Element | Reason |
|---|---|---|
| 365 | Sqlite::supportsCTEs() | Use |
| 378 | Sqlite::supportsWindowFunctions() | Use |
Driver.php
| Line | Element | Reason |
|---|---|---|
| 292 | Driver::supportsCTEs() | Use |
| 315 | Driver::supportsQuoting() | Use |
DriverInterface.php
| Line | Element | Reason |
|---|---|---|
| 193 | DriverInterface::supportsDynamicConstraints() | Fixtures no longer dynamically drop and create constraints. |
| 201 | DriverInterface::supportsSavePoints() | Use |
| 218 | DriverInterface::supportsQuoting() | Use |
CaseExpression.php
| Line | Element | Reason |
|---|---|---|
| 29 | CaseExpression | Use QueryExpression::case() or CaseStatementExpression instead |
QueryExpression.php
| Line | Element | Reason |
|---|---|---|
| 344 | QueryExpression::addCase() | Use QueryExpression::case() or CaseStatementExpression instead |
| 512 | QueryExpression::and_() | |
| 529 | QueryExpression::or_() | |
| 669 | QueryExpression::isCallable() | This method is unused. |
Query.php
| Line | Element | Reason |
|---|---|---|
| 107 | Query::$_selectParts | This property is unused. |
| 118 | Query::$_updateParts | This property is unused. |
| 126 | Query::$_deleteParts | This property is unused. |
| 134 | Query::$_insertParts | This property is unused. |
TableSchema.php
| Line | Element | Reason |
|---|---|---|
| 523 | TableSchema::primaryKey() |
DateTimeType.php
| Line | Element | Reason |
|---|---|---|
| 171 | DateTimeType::setTimezone() | |
| 445 | DateTimeType::useImmutable() | This method is no longer needed as using immutable datetime class is the default behavior. |
| 491 | DateTimeType::useMutable() | Using mutable datetime objects is deprecated. |
DateType.php
| Line | Element | Reason |
|---|---|---|
| 67 | DateType::useImmutable() | This method is no longer needed as using immutable datetime class is the default behavior. |
| 85 | DateType::useMutable() | Using mutable datetime objects is deprecated. |
EntityTrait.php
| Line | Element | Reason |
|---|---|---|
| 458 | EntityTrait::unsetProperty() |
ModelAwareTrait.php
| Line | Element | Reason |
|---|---|---|
| 33 | ModelAwareTrait | Use |
| 98 | ModelAwareTrait::loadModel() | Use |
| 49 | ModelAwareTrait::$modelClass | Use |
BaseErrorHandler.php
| Line | Element | Reason |
|---|---|---|
| 205 | BaseErrorHandler::wrapAndHandleException() | Unused method will be removed in 5.0 |
Debugger.php
| Line | Element | Reason |
|---|---|---|
| 846 | Debugger::getOutputFormat() | Update your application so use ErrorTrap instead. |
| 861 | Debugger::setOutputFormat() | Update your application so use ErrorTrap instead. |
| 916 | Debugger::addFormat() | Update your application so use ErrorTrap instead. |
| 945 | Debugger::addRenderer() | Update your application so use ErrorTrap instead. |
| 964 | Debugger::outputError() | Update your application so use ErrorTrap instead. |
ErrorLogger.php
| Line | Element | Reason |
|---|---|---|
| 109 | ErrorLogger::logMessage() | Use logError instead. |
| 132 | ErrorLogger::log() | Use logException instead. |
ErrorLoggerInterface.php
| Line | Element | Reason |
|---|---|---|
| 43 | ErrorLoggerInterface::log() | Implement |
| 57 | ErrorLoggerInterface::logMessage() | Implement |
ExceptionRenderer.php
| Line | Element | Reason |
|---|---|---|
| 26 | ExceptionRenderer | Use |
File.php
| Line | Element | Reason |
|---|---|---|
| 27 | File | Will be removed in 5.0. |
Folder.php
| Line | Element | Reason |
|---|---|---|
| 32 | Folder | Will be removed in 5.0. |
Form.php
| Line | Element | Reason |
|---|---|---|
| 183 | Form::schema() |
Cookie.php
| Line | Element | Reason |
|---|---|---|
| 435 | Cookie::getStringValue() |
RedirectException.php
| Line | Element | Reason |
|---|---|---|
| 58 | RedirectException::addHeaders() | Use |
| 76 | RedirectException::removeHeader() | Use |
CsrfProtectionMiddleware.php
| Line | Element | Reason |
|---|---|---|
| 187 | CsrfProtectionMiddleware::whitelistCallback() | Use skipCheckCallback instead. |
| 234 | CsrfProtectionMiddleware::_createToken() |
DoublePassDecoratorMiddleware.php
| Line | Element | Reason |
|---|---|---|
| 45 | DoublePassDecoratorMiddleware | "Double pass" middleware are deprecated.
Use a |
Response.php
| Line | Element | Reason |
|---|---|---|
| 995 | Response::notModified() | Use |
| 1246 | Response::checkNotModified() | Use |
ServerRequest.php
| Line | Element | Reason |
|---|---|---|
| 1136 | ServerRequest::parseAccept() | Use |
| 1263 | ServerRequest::input() | Use |
Date.php
| Line | Element | Reason |
|---|---|---|
| 29 | Date | Use the immutable alternative |
Number.php
| Line | Element | Reason |
|---|---|---|
| 277 | Number::defaultCurrency() |
Time.php
| Line | Element | Reason |
|---|---|---|
| 30 | Time | Use the immutable alternative |
BaseLog.php
| Line | Element | Reason |
|---|---|---|
| 126 | BaseLog::_format() | Call |
LegacySyslogFormatter.php
| Line | Element | Reason |
|---|---|---|
| 22 | LegacySyslogFormatter | Create a custom formatter and set it with |
Email.php
| Line | Element | Reason |
|---|---|---|
| 44 | ||
| 52 | Email::MESSAGE_HTML | Use Message::MESSAGE_HTML instead. |
| 60 | Email::MESSAGE_TEXT | Use Message::MESSAGE_TEXT instead. |
| 68 | Email::MESSAGE_BOTH | Use Message::MESSAGE_BOTH instead. |
| 76 | Email::EMAIL_PATTERN | Use Message::EMAIL_PATTERN instead. |
Mailer.php
| Line | Element | Reason |
|---|---|---|
| 309 | Mailer::set() |
Association.php
| Line | Element | Reason |
|---|---|---|
| 254 | Association::setName() | Changing the association name after object creation is no longer supported. The name should only be set through the constructor. |
Behavior.php
| Line | Element | Reason |
|---|---|---|
| 189 | Behavior::getTable() | Use table() instead. |
SaveOptionsBuilder.php
| Line | Element | Reason |
|---|---|---|
| 31 | SaveOptionsBuilder | Use a normal array for options instead. |
Table.php
| Line | Element | Reason |
|---|---|---|
| 3046 | Table::getSaveOptionsBuilder() | Use a normal array for options instead. |
TableRegistry.php
| Line | Element | Reason |
|---|---|---|
| 93 | TableRegistry::get() | |
| 105 | TableRegistry::exists() | |
| 118 | TableRegistry::set() | |
| 130 | TableRegistry::remove() | |
| 141 | TableRegistry::clear() |
RedirectException.php
| Line | Element | Reason |
|---|---|---|
| 36 | RedirectException |
Router.php
| Line | Element | Reason |
|---|---|---|
| 211 | Router::connect() | Use the non-static method |
| 838 | Router::scope() | Use the non-static method |
| 877 | Router::prefix() | Use the non-static method |
| 914 | Router::plugin() | Use the non-static method |
ConsoleIntegrationTestCase.php
| Line | Element | Reason |
|---|---|---|
| 26 | ConsoleIntegrationTestCase |
FixtureInjector.php
| Line | Element | Reason |
|---|---|---|
| 31 | FixtureInjector |
IntegrationTestCase.php
| Line | Element | Reason |
|---|---|---|
| 30 | IntegrationTestCase |
TestCase.php
| Line | Element | Reason |
|---|---|---|
| 338 | TestCase::loadFixtures() | Disabling auto-fixtures is deprecated and only available using FixtureInjector fixture system. |
| 72 | TestCase::$autoFixtures | autoFixtures is only used by deprecated fixture features. This property will be removed in 5.0 |
| 84 | TestCase::$dropTables | dropTables is only used by deprecated fixture features. This property will be removed in 5.0 |
ValidatableInterface.php
| Line | Element | Reason |
|---|---|---|
| 24 | ValidatableInterface | This interface is unused. |
Validation.php
| Line | Element | Reason |
|---|---|---|
| 437 | Validation::containsNonAlphaNumeric() |
Validator.php
| Line | Element | Reason |
|---|---|---|
| 224 | Validator::errors() | |
| 779 | Validator::allowEmpty() | |
| 1239 | Validator::notEmpty() | |
| 1736 | Validator::containsNonAlphaNumeric() | |
| 2631 | Validator::_fieldIsEmpty() |
ArrayContext.php
| Line | Element | Reason |
|---|---|---|
| 103 | ArrayContext::primaryKey() |
EntityContext.php
| Line | Element | Reason |
|---|---|---|
| 173 | EntityContext::primaryKey() |
FormContext.php
| Line | Element | Reason |
|---|---|---|
| 71 | FormContext::primaryKey() |
NullContext.php
| Line | Element | Reason |
|---|---|---|
| 42 | NullContext::primaryKey() |
NumberHelper.php
| Line | Element | Reason |
|---|---|---|
| 227 | NumberHelper::defaultCurrency() | Use setDefaultCurrency()/getDefaultCurrency() instead. |
SerializedView.php
| Line | Element | Reason |
|---|---|---|
| 34 | SerializedView::$_responseType | Implement |
MutableDate.php
| Line | Element | Reason |
|---|---|---|
| 54 | MutableDate | Use immutable \Cake\Chronos\ChronosDate instead |
MutableDateTime.php
| Line | Element | Reason |
|---|---|---|
| 55 | MutableDateTime | Use immutable \Cake\Chronos\Chronos instead |
ComparisonTrait.php
| Line | Element | Reason |
|---|---|---|
| 72 | ComparisonTrait::eq() | eq() is deprecated. Use equals() instead. |
| 97 | ComparisonTrait::ne() | ne() is deprecated. Use notEquals() instead. |
| 122 | ComparisonTrait::gt() | gt() is deprecated. Use greaterThan() instead. |
| 147 | ComparisonTrait::gte() | gte() is deprecated. Use greaterThanOrEquals() instead. |
| 172 | ComparisonTrait::lt() | lt() is deprecated. Use lessThan instead. |
| 197 | ComparisonTrait::lte() | lte() is deprecated. Use lessThanOrEquals() instead. |
InstalledVersions.php
| Line | Element | Reason |
|---|---|---|
| 262 | InstalledVersions::getRawData() | Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. |
create_uploaded_file.legacy.php
| Line | Element | Reason |
|---|---|---|
| 15 | createUploadedFile() | Use Laminas\Diactoros\createUploadedFile instead |
marshal_headers_from_sapi.legacy.php
| Line | Element | Reason |
|---|---|---|
| 13 | marshalHeadersFromSapi() | Use Laminas\Diactoros\marshalHeadersFromSapi instead |
marshal_method_from_sapi.legacy.php
| Line | Element | Reason |
|---|---|---|
| 13 | marshalMethodFromSapi() | Use Laminas\Diactoros\marshalMethodFromSapi instead |
marshal_protocol_version_from_sapi.legacy.php
| Line | Element | Reason |
|---|---|---|
| 13 | marshalProtocolVersionFromSapi() | Use Laminas\Diactoros\marshalProtocolVersionFromSapi instead |
marshal_uri_from_sapi.legacy.php
| Line | Element | Reason |
|---|---|---|
| 15 | marshalUriFromSapi() | Use Laminas\Diactoros\marshalUriFromSapi instead |
marshal_uri_from_sapi.php
| Line | Element | Reason |
|---|---|---|
| 38 | marshalUriFromSapi() | This function is deprecated as of 2.11.1, and will be removed in 3.0.0. As of 2.11.1, it is no longer used internally. |
normalize_server.legacy.php
| Line | Element | Reason |
|---|---|---|
| 13 | normalizeServer() | Use Laminas\Diactoros\normalizeServer instead |
normalize_uploaded_files.legacy.php
| Line | Element | Reason |
|---|---|---|
| 13 | normalizeUploadedFiles() | Use Laminas\Diactoros\normalizeUploadedFiles instead |
parse_cookie_header.legacy.php
| Line | Element | Reason |
|---|---|---|
| 16 | parseCookieHeader() | Use parseCookieHeader instead |