Documentation

Deprecated

Table of Contents

app/Config/App.php
app/Config/Cache.php
app/Config/Format.php
app/Config/Security.php
system/API/ResponseTrait.php
system/BaseModel.php
system/Cache/Exceptions/ExceptionInterface.php
system/CLI/BaseCommand.php
system/Commands/Generators/MigrateCreate.php
system/Commands/Generators/SessionMigrationGenerator.php
system/Config/BaseService.php
system/Config/Config.php
system/Controller.php
system/Database/ModelFactory.php
system/Entity.php
system/Exceptions/CastException.php
system/HTTP/Exceptions/HTTPException.php
system/HTTP/IncomingRequest.php
system/HTTP/Message.php
system/HTTP/Request.php
system/HTTP/RequestInterface.php
system/HTTP/RequestTrait.php
system/HTTP/Response.php
system/HTTP/ResponseInterface.php
system/HTTP/ResponseTrait.php
system/I18n/Time.php
system/Model.php
system/Router/Router.php
system/Security/Exceptions/SecurityException.php
system/Security/Security.php
system/Security/SecurityInterface.php
system/Session/Exceptions/SessionException.php
system/Session/Session.php
system/Test/CIDatabaseTestCase.php
system/Test/ControllerResponse.php
system/Test/ControllerTester.php
system/Test/FeatureResponse.php
system/Test/FeatureTestCase.php
system/Test/Mock/MockSecurityConfig.php
system/View/View.php
vendor/composer/InstalledVersions.php
vendor/fakerphp/faker/src/Faker/Calculator/Inn.php
vendor/fakerphp/faker/src/Faker/Calculator/TCNo.php
vendor/fakerphp/faker/src/Faker/DefaultGenerator.php
vendor/fakerphp/faker/src/Faker/Generator.php
vendor/fakerphp/faker/src/Faker/Provider/at_AT/Payment.php
vendor/fakerphp/faker/src/Faker/Provider/Barcode.php
vendor/fakerphp/faker/src/Faker/Provider/el_GR/PhoneNumber.php
vendor/fakerphp/faker/src/Faker/Provider/Image.php
vendor/fakerphp/faker/src/Faker/Provider/ru_RU/Company.php
vendor/fakerphp/faker/src/Faker/Provider/zh_TW/Internet.php
vendor/fakerphp/faker/src/Faker/Provider/zh_TW/Payment.php
vendor/fakerphp/faker/src/Faker/UniqueGenerator.php
vendor/fakerphp/faker/src/Faker/ValidGenerator.php
vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/content/SeekableFileContent.php
vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamFile.php
vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Date/DateIntervalFilter.php
vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/SplDoublyLinkedList.php
vendor/nikic/php-parser/lib/PhpParser/Builder/Param.php
vendor/nikic/php-parser/lib/PhpParser/Comment.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/StaticMethod.php
vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ArgumentNode.php
vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/MethodNode.php
vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ReturnTypeNode.php
vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/TypeHintReference.php
vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php
vendor/phpunit/phpunit/src/Framework/Assert/Functions.php
vendor/phpunit/phpunit/src/Framework/Assert.php
vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php
vendor/phpunit/phpunit/src/Framework/TestCase.php
vendor/phpunit/phpunit/src/Framework/TestListener.php
vendor/phpunit/phpunit/src/Framework/TestListenerDefaultImplementation.php
vendor/phpunit/phpunit/src/Runner/TestSuiteLoader.php
vendor/phpunit/phpunit/src/TextUI/Command.php
vendor/phpunit/phpunit/src/Util/Blacklist.php
vendor/sebastian/type/src/FalseType.php
vendor/sebastian/type/src/NullType.php
vendor/sebastian/type/src/Type.php
vendor/sebastian/type/src/TypeName.php
vendor/sebastian/type/src/UnionType.php
vendor/sebastian/type/src/UnknownType.php
vendor/webmozart/assert/src/Assert.php
vendor/webmozart/assert/src/Mixin.php

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 Config\Security $tokenName property instead of using this property.

371 App::$CSRFHeaderName

Use Config\Security $headerName property instead of using this property.

384 App::$CSRFCookieName

Use Config\Security $cookieName property instead of using this property.

397 App::$CSRFExpire

Use Config\Security $expire property instead of using this property.

410 App::$CSRFRegenerate

Use Config\Security $regenerate property instead of using this property.

423 App::$CSRFRedirect

Use Config\Security $redirect property instead of using this property.

444 App::$CSRFSameSite

Use Config\Security $samesite property instead of using this property.

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 \CodeIgniter\Format\Format::getFormatter. Use that instead.

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 make:migration --session instead.

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 helper function instead of using this method.

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 CookieException::forInvalidSameSite() instead.

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 CookieException::forInvalidSameSite() instead.

Security.php

Line Element Reason
166 Security::CSRFVerify()

Use CodeIgniter\Security\Security::verify() instead of using this method.

180 Security::getCSRFHash()

Use CodeIgniter\Security\Security::getHash() instead of using this method.

194 Security::getCSRFTokenName()

Use CodeIgniter\Security\Security::getTokenName() instead of using this method.

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

moved to ru_RU\Company, use .

23 Inn::checksum()

use instead

38 Inn::isValid()

use instead

TCNo.php

Line Element Reason
9 TCNo

moved to tr_TR\Person, use .

24 TCNo::checksum()

use instead

39 TCNo::isValid()

use instead

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

at_AT is not an existing locale, use .

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()

use instead

Internet.php

Line Element Reason
9 Internet

Use instead

15 Internet::userName()

Use instead

24 Internet::domainWord()

Use instead

Payment.php

Line Element Reason
9 Payment

Use instead

17 Payment::creditCardDetails()

Use instead

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 TestHook interfaces instead

25 TestListener::addError()

Use AfterTestErrorHook::executeAfterTestError instead

32 TestListener::addWarning()

Use AfterTestWarningHook::executeAfterTestWarning instead

39 TestListener::addFailure()

Use AfterTestFailureHook::executeAfterTestFailure instead

46 TestListener::addIncompleteTest()

Use AfterIncompleteTestHook::executeAfterIncompleteTest instead

53 TestListener::addRiskyTest()

Use AfterRiskyTestHook::executeAfterRiskyTest instead

60 TestListener::addSkippedTest()

Use AfterSkippedTestHook::executeAfterSkippedTest instead

77 TestListener::startTest()

Use BeforeTestHook::executeBeforeTest instead

84 TestListener::endTest()

Use AfterTestHook::executeAfterTest instead

TestListenerDefaultImplementation.php

Line Element Reason
18 TestListenerDefaultImplementation

The TestListener interface is deprecated

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

Search results