Deprecated
Table of Contents
App.php
Line | Element | Reason |
---|---|---|
247 | App::$cookiePrefix | use Config\Cookie::$prefix property instead. |
260 | App::$cookieDomain | use Config\Cookie::$domain property instead. |
273 | App::$cookiePath | use Config\Cookie::$path property instead. |
286 | App::$cookieSecure | use Config\Cookie::$secure property instead. |
299 | App::$cookieHTTPOnly | use Config\Cookie::$httponly property instead. |
325 | App::$cookieSameSite | use Config\Cookie::$samesite property instead. |
358 | App::$CSRFTokenName | Use |
371 | App::$CSRFHeaderName | Use |
384 | App::$CSRFCookieName | Use |
397 | App::$CSRFExpire | Use |
410 | App::$CSRFRegenerate | Use |
423 | App::$CSRFRedirect | Use |
444 | App::$CSRFSameSite | Use |
Cache.php
Line | Element | Reason |
---|---|---|
52 | Cache::$storePath | Use the driver-specific variant under $file |
Format.php
Line | Element | Reason |
---|---|---|
75 | Format::getFormatter() | This is an alias of |
Security.php
Line | Element | Reason |
---|---|---|
94 | Security::$samesite |
ResponseTrait.php
Line | Element | Reason |
---|---|---|
286 | ResponseTrait::failValidationError() | Use failValidationErrors instead |
BaseModel.php
Line | Element | Reason |
---|---|---|
469 | BaseModel::idValue() | Add an override on getIdValue() instead. Will be removed in version 5.0. |
1776 | BaseModel::fillPlaceholders() | use fillPlaceholders($rules, $data) from Validation instead |
ExceptionInterface.php
Line | Element | Reason |
---|---|---|
22 | ExceptionInterface |
BaseCommand.php
Line | Element | Reason |
---|---|---|
221 | BaseCommand::getPad() | Use setPad() instead. |
MigrateCreate.php
Line | Element | Reason |
---|---|---|
24 | MigrateCreate | Use make:migration instead. |
SessionMigrationGenerator.php
Line | Element | Reason |
---|---|---|
25 | SessionMigrationGenerator | Use |
BaseService.php
Line | Element | Reason |
---|---|---|
343 | BaseService::discoverServices() |
Config.php
Line | Element | Reason |
---|---|---|
19 | Config | Use CodeIgniter\Config\Factories::config() |
Controller.php
Line | Element | Reason |
---|---|---|
136 | Controller::loadHelpers() | Use |
ModelFactory.php
Line | Element | Reason |
---|---|---|
23 | ModelFactory | Use CodeIgniter\Config\Factories::models() |
Entity.php
Line | Element | Reason |
---|---|---|
21 | Entity | use CodeIgniter\Entity\Entity class instead |
CastException.php
Line | Element | Reason |
---|---|---|
21 | CastException | use CodeIgniter\Entity\Exceptions\CastException instead. |
HTTPException.php
Line | Element | Reason |
---|---|---|
245 | HTTPException::forInvalidSameSiteSetting() | Use |
IncomingRequest.php
Line | Element | Reason |
---|---|---|
854 | IncomingRequest::removeRelativeDirectory() | Use URI::removeDotSegments() directly |
Message.php
Line | Element | Reason |
---|---|---|
67 | Message::getHeaders() | Use Message::headers() to make room for PSR-7 |
84 | Message::getHeader() | Use Message::header() to make room for PSR-7 |
Request.php
Line | Element | Reason |
---|---|---|
53 | Request::__construct() | The $config is no longer needed and will be removed in a future version |
83 | Request::isValidIP() | Use Validation instead |
99 | Request::getMethod() | The $upper functionality will be removed and this will revert to its PSR-7 equivalent |
115 | Request::setMethod() | Use withMethod() instead for immutability |
30 | Request::$proxyIPs | Check the App config directly |
RequestInterface.php
Line | Element | Reason |
---|---|---|
43 | RequestInterface::isValidIP() | Use Validation instead |
57 | RequestInterface::getMethod() | The $upper functionality will be removed and this will revert to its PSR-7 equivalent |
RequestTrait.php
Line | Element | Reason |
---|---|---|
33 | RequestTrait::$ipAddress | Will become private in a future release |
Response.php
Line | Element | Reason |
---|---|---|
237 | Response::getReason() | Use getReasonPhrase() |
ResponseInterface.php
Line | Element | Reason |
---|---|---|
117 | ResponseInterface::getStatusCode() | To be replaced by the PSR-7 version (compatible) |
152 | ResponseInterface::getReason() | Use getReasonPhrase() |
ResponseTrait.php
Line | Element | Reason |
---|---|---|
64 | ResponseTrait::$cookiePrefix | Use the dedicated Cookie class instead. |
73 | ResponseTrait::$cookieDomain | Use the dedicated Cookie class instead. |
82 | ResponseTrait::$cookiePath | Use the dedicated Cookie class instead. |
91 | ResponseTrait::$cookieSecure | Use the dedicated Cookie class instead. |
100 | ResponseTrait::$cookieHTTPOnly | Use the dedicated Cookie class instead. |
109 | ResponseTrait::$cookieSameSite | Use the dedicated Cookie class instead. |
118 | ResponseTrait::$cookies | Use the dedicated Cookie class instead. |
Time.php
Line | Element | Reason |
---|---|---|
336 | Time::instance() | Use createFromInstance() instead |
Model.php
Line | Element | Reason |
---|---|---|
465 | Model::idValue() | Use getIdValue() instead. Will be removed in version 5.0. |
840 | Model::classToArray() | since 4.1 |
Router.php
Line | Element | Reason |
---|---|---|
590 | Router::validateRequest() | this function name does not properly describe its behavior so it has been deprecated |
SecurityException.php
Line | Element | Reason |
---|---|---|
28 | SecurityException::forInvalidSameSite() | Use |
Security.php
Line | Element | Reason |
---|---|---|
166 | Security::CSRFVerify() | Use |
180 | Security::getCSRFHash() | Use |
194 | Security::getCSRFTokenName() | Use |
319 | Security::isExpired() | |
83 | Security::$expires | |
118 | Security::$samesite |
SecurityInterface.php
Line | Element | Reason |
---|---|---|
68 | SecurityInterface::isExpired() |
SessionException.php
Line | Element | Reason |
---|---|---|
48 | SessionException::forInvalidSameSiteSetting() |
Session.php
Line | Element | Reason |
---|---|---|
117 | Session::$cookieDomain | |
127 | Session::$cookiePath | |
136 | Session::$cookieSecure | |
146 | Session::$cookieSameSite |
CIDatabaseTestCase.php
Line | Element | Reason |
---|---|---|
21 | CIDatabaseTestCase |
ControllerResponse.php
Line | Element | Reason |
---|---|---|
24 | ControllerResponse | Use TestResponse directly |
63 | ControllerResponse::setResponse() | Will revert to parent::setResponse() in a future release (no $body updates) |
81 | ControllerResponse::setBody() | Use response()->setBody() instead |
100 | ControllerResponse::getBody() | Use response()->getBody() instead |
33 | ControllerResponse::$body | Use $response->getBody() instead |
42 | ControllerResponse::$dom | Use $domParser instead |
ControllerTester.php
Line | Element | Reason |
---|---|---|
42 | ControllerTester | Use ControllerTestTrait instead |
FeatureResponse.php
Line | Element | Reason |
---|---|---|
19 | FeatureResponse | Use TestResponse directly |
24 | FeatureResponse::$response | Will be protected in a future release, use response() instead |
FeatureTestCase.php
Line | Element | Reason |
---|---|---|
36 | FeatureTestCase | Use FeatureTestTrait instead |
MockSecurityConfig.php
Line | Element | Reason |
---|---|---|
12 | MockSecurityConfig |
View.php
Line | Element | Reason |
---|---|---|
127 | View::$currentSection |
InstalledVersions.php
Line | Element | Reason |
---|---|---|
247 | 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. |
Inn.php
Line | Element | Reason |
---|---|---|
9 | Inn | |
23 | Inn::checksum() | |
38 | Inn::isValid() |
TCNo.php
Line | Element | Reason |
---|---|---|
9 | TCNo | |
24 | TCNo::checksum() | |
39 | TCNo::isValid() |
DefaultGenerator.php
Line | Element | Reason |
---|---|---|
25 | DefaultGenerator::__get() | Use a method instead. |
Generator.php
Line | Element | Reason |
---|---|---|
862 | Generator::callFormatWithMatches() | |
874 | Generator::__get() | Use a method instead. |
Payment.php
Line | Element | Reason |
---|---|---|
9 | Payment |
Barcode.php
Line | Element | Reason |
---|---|---|
30 | Barcode::eanChecksum() | Use \Faker\Calculator\Ean::checksum() instead |
47 | Barcode::isbnChecksum() | Use \Faker\Calculator\Isbn::checksum() instead |
PhoneNumber.php
Line | Element | Reason |
---|---|---|
221 | PhoneNumber::mobilePhoneNumber() | Use PhoneNumber::mobileNumber() instead. |
Image.php
Line | Element | Reason |
---|---|---|
20 | Image::$categories | Categories are no longer used as a list in the placeholder API but referenced as string instead |
Company.php
Line | Element | Reason |
---|---|---|
110 | Company::inn() |
Internet.php
Line | Element | Reason |
---|---|---|
9 | Internet | |
15 | Internet::userName() | |
24 | Internet::domainWord() |
Payment.php
Line | Element | Reason |
---|---|---|
9 | Payment | |
17 | Payment::creditCardDetails() |
UniqueGenerator.php
Line | Element | Reason |
---|---|---|
52 | UniqueGenerator::__get() | Use a method instead. |
ValidGenerator.php
Line | Element | Reason |
---|---|---|
42 | ValidGenerator::__get() | Use a method instead. |
SeekableFileContent.php
Line | Element | Reason |
---|---|---|
119 | SeekableFileContent::bytesRead() | |
130 | SeekableFileContent::readUntilEnd() |
vfsStreamFile.php
Line | Element | Reason |
---|---|---|
180 | vfsStreamFile::readUntilEnd() | since 1.3.0 |
230 | vfsStreamFile::getBytesRead() | since 1.3.0 |
DateIntervalFilter.php
Line | Element | Reason |
---|---|---|
13 | DateIntervalFilter | Will be removed in 2.0. This filter will no longer be necessary in PHP 7.1+. |
SplDoublyLinkedList.php
Line | Element | Reason |
---|---|---|
8 | SplDoublyLinkedList | Use SplDoublyLinkedListFilter instead. |
Param.php
Line | Element | Reason |
---|---|---|
72 | Param::setTypeHint() | Use setType() instead |
Comment.php
Line | Element | Reason |
---|---|---|
107 | Comment::getLine() | Use getStartLine() instead |
118 | Comment::getFilePos() | Use getStartFilePos() instead |
129 | Comment::getTokenPos() | Use getStartTokenPos() instead |
StaticMethod.php
Line | Element | Reason |
---|---|---|
19 | StaticMethod | This contract is totally covered by Tag contract. Every class using StaticMethod also use Tag |
ArgumentNode.php
Line | Element | Reason |
---|---|---|
99 | ArgumentNode::getTypeHint() | use getArgumentTypeNode instead |
110 | ArgumentNode::setTypeHint() | use setArgumentTypeNode instead |
119 | ArgumentNode::isNullable() | use getArgumentTypeNode instead |
128 | ArgumentNode::setAsNullable() | use getArgumentTypeNode instead |
MethodNode.php
Line | Element | Reason |
---|---|---|
112 | MethodNode::hasReturnType() | use getReturnTypeNode instead |
126 | MethodNode::setReturnType() | use setReturnTypeNode instead |
135 | MethodNode::setNullableReturnType() | use setReturnTypeNode instead |
149 | MethodNode::getReturnType() | use getReturnTypeNode instead |
168 | MethodNode::hasNullableReturnType() | use getReturnTypeNode instead |
ReturnTypeNode.php
Line | Element | Reason |
---|---|---|
35 | ReturnTypeNode::isVoid() | use hasReturnStatement |
TypeHintReference.php
Line | Element | Reason |
---|---|---|
11 | TypeHintReference | in favour of Node\TypeNodeAbstract |
MethodProphecy.php
Line | Element | Reason |
---|---|---|
453 | MethodProphecy::shouldNotBeenCalled() |
Functions.php
Line | Element | Reason |
---|---|---|
778 | assertNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4062 |
833 | assertNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4065 |
888 | assertDirectoryNotExists() | https://github.com/sebastianbergmann/phpunit/issues/4068 |
943 | assertDirectoryNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4071 |
998 | assertDirectoryNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4074 |
1053 | assertFileNotExists() | https://github.com/sebastianbergmann/phpunit/issues/4077 |
1108 | assertFileNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4080 |
1163 | assertFileNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4083 |
2020 | assertRegExp() | https://github.com/sebastianbergmann/phpunit/issues/4086 |
2058 | assertNotRegExp() | https://github.com/sebastianbergmann/phpunit/issues/4089 |
2441 | assertEqualXMLStructure() | https://github.com/sebastianbergmann/phpunit/issues/4091 |
Assert.php
Line | Element | Reason |
---|---|---|
762 | Assert::assertNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4062 |
801 | Assert::assertNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4065 |
840 | Assert::assertDirectoryNotExists() | https://github.com/sebastianbergmann/phpunit/issues/4068 |
881 | Assert::assertDirectoryNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4071 |
923 | Assert::assertDirectoryNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4074 |
963 | Assert::assertFileNotExists() | https://github.com/sebastianbergmann/phpunit/issues/4077 |
1004 | Assert::assertFileNotIsReadable() | https://github.com/sebastianbergmann/phpunit/issues/4080 |
1046 | Assert::assertFileNotIsWritable() | https://github.com/sebastianbergmann/phpunit/issues/4083 |
1838 | Assert::assertRegExp() | https://github.com/sebastianbergmann/phpunit/issues/4086 |
1872 | Assert::assertNotRegExp() | https://github.com/sebastianbergmann/phpunit/issues/4089 |
2265 | Assert::assertEqualXMLStructure() | https://github.com/sebastianbergmann/phpunit/issues/4091 |
MockBuilder.php
Line | Element | Reason |
---|---|---|
209 | MockBuilder::setMethods() | https://github.com/sebastianbergmann/phpunit/pull/3687 |
310 | MockBuilder::setMethodsExcept() | https://github.com/sebastianbergmann/phpunit/pull/3687 |
TestCase.php
Line | Element | Reason |
---|---|---|
422 | TestCase::at() | https://github.com/sebastianbergmann/phpunit/issues/4297 |
139 | TestCase::$backupGlobalsBlacklist | Use $backupGlobalsExcludeList instead |
156 | TestCase::$backupStaticAttributesBlacklist | Use $backupStaticAttributesExcludeList instead |
TestListener.php
Line | Element | Reason |
---|---|---|
18 | TestListener | Use the |
25 | TestListener::addError() | Use |
32 | TestListener::addWarning() | Use |
39 | TestListener::addFailure() | Use |
46 | TestListener::addIncompleteTest() | Use |
53 | TestListener::addRiskyTest() | Use |
60 | TestListener::addSkippedTest() | Use |
77 | TestListener::startTest() | Use |
84 | TestListener::endTest() | Use |
TestListenerDefaultImplementation.php
Line | Element | Reason |
---|---|---|
18 | TestListenerDefaultImplementation | The |
TestSuiteLoader.php
Line | Element | Reason |
---|---|---|
19 | TestSuiteLoader | see https://github.com/sebastianbergmann/phpunit/issues/4039 |
Command.php
Line | Element | Reason |
---|---|---|
424 | Command::handleLoader() | see https://github.com/sebastianbergmann/phpunit/issues/4039 |
Blacklist.php
Line | Element | Reason |
---|---|---|
17 | Blacklist | Use ExcludeList instead |
FalseType.php
Line | Element | Reason |
---|---|---|
42 | FalseType::getReturnTypeDeclaration() |
NullType.php
Line | Element | Reason |
---|---|---|
34 | NullType::getReturnTypeDeclaration() |
Type.php
Line | Element | Reason |
---|---|---|
91 | Type::getReturnTypeDeclaration() |
TypeName.php
Line | Element | Reason |
---|---|---|
84 | TypeName::getNamespaceName() | Use namespaceName() instead |
94 | TypeName::getSimpleName() | Use simpleName() instead |
104 | TypeName::getQualifiedName() | Use qualifiedName() instead |
UnionType.php
Line | Element | Reason |
---|---|---|
55 | UnionType::getReturnTypeDeclaration() |
UnknownType.php
Line | Element | Reason |
---|---|---|
34 | UnknownType::getReturnTypeDeclaration() |
Assert.php
Line | Element | Reason |
---|---|---|
319 | Assert::isTraversable() | use "isIterable" or "isInstanceOf" instead |
Mixin.php
Line | Element | Reason |
---|---|---|
483 | Mixin::nullOrIsTraversable() | use "isIterable" or "isInstanceOf" instead |
501 | Mixin::allIsTraversable() | use "isIterable" or "isInstanceOf" instead |