Deprecated
Table of Contents
InstalledVersions.php
| Line | Element | Reason |
|---|---|---|
| 273 | 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. |
Client.php
| Line | Element | Reason |
|---|---|---|
| 81 | Client::__call() | Client::__call will be removed in guzzlehttp/guzzle:8.0. |
| 205 | Client::getConfig() | Client::getConfig will be removed in guzzlehttp/guzzle:8.0. |
ClientInterface.php
| Line | Element | Reason |
|---|---|---|
| 83 | ClientInterface::getConfig() | ClientInterface::getConfig will be removed in guzzlehttp/guzzle:8.0. |
functions.php
| Line | Element | Reason |
|---|---|---|
| 16 | describe_type() | describe_type will be removed in guzzlehttp/guzzle:8.0. Use Utils::describeType instead. |
| 29 | headers_from_lines() | headers_from_lines will be removed in guzzlehttp/guzzle:8.0. Use Utils::headersFromLines instead. |
| 43 | debug_resource() | debug_resource will be removed in guzzlehttp/guzzle:8.0. Use Utils::debugResource instead. |
| 59 | choose_handler() | choose_handler will be removed in guzzlehttp/guzzle:8.0. Use Utils::chooseHandler instead. |
| 69 | default_user_agent() | default_user_agent will be removed in guzzlehttp/guzzle:8.0. Use Utils::defaultUserAgent instead. |
| 89 | default_ca_bundle() | default_ca_bundle will be removed in guzzlehttp/guzzle:8.0. This function is not needed in PHP 5.6+. |
| 100 | normalize_header_keys() | normalize_header_keys will be removed in guzzlehttp/guzzle:8.0. Use Utils::normalizeHeaderKeys instead. |
| 126 | is_host_in_noproxy() | is_host_in_noproxy will be removed in guzzlehttp/guzzle:8.0. Use Utils::isHostInNoProxy instead. |
| 147 | json_decode() | json_decode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonDecode instead. |
| 164 | json_encode() | json_encode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonEncode instead. |
CurlFactory.php
| Line | Element | Reason |
|---|---|---|
| 28 | CurlFactory::LOW_CURL_VERSION_NUMBER |
Utils.php
| Line | Element | Reason |
|---|---|---|
| 134 | Utils::defaultCaBundle() | Utils::defaultCaBundle will be removed in guzzlehttp/guzzle:8.0. This method is not needed in PHP 5.6+. |
Header.php
| Line | Element | Reason |
|---|---|---|
| 52 | Header::normalize() | Use self::splitList() instead. |
ElasticaFormatter.php
| Line | Element | Reason |
|---|---|---|
| 67 | ElasticaFormatter::getType() | since Elastica 7 type has no effect |
FlowdockFormatter.php
| Line | Element | Reason |
|---|---|---|
| 22 | FlowdockFormatter | Since 2.9.0 and 3.3.0, Flowdock was shutdown we will thus drop this handler in Monolog 4 |
CubeHandler.php
| Line | Element | Reason |
|---|---|---|
| 25 | CubeHandler | Since 2.8.0 and 3.2.0, Cube appears abandoned and thus we will drop this handler in Monolog 4 |
FlowdockHandler.php
| Line | Element | Reason |
|---|---|---|
| 32 | FlowdockHandler | Since 2.9.0 and 3.3.0, Flowdock was shutdown we will thus drop this handler in Monolog 4 |
PHPConsoleHandler.php
| Line | Element | Reason |
|---|---|---|
| 89 | PHPConsoleHandler | Since 2.8.0 and 3.2.0, PHPConsole is abandoned and thus we will drop this handler in Monolog 4 |
Logger.php
| Line | Element | Reason |
|---|---|---|
| 466 | Logger::getLevelName() | Since 3.0, use toMonologLevel or \Monolog\Level->getName() instead |
| 42 | Logger::DEBUG | Use \Monolog\Level::Debug |
| 51 | Logger::INFO | Use \Monolog\Level::Info |
| 58 | Logger::NOTICE | Use \Monolog\Level::Notice |
| 68 | Logger::WARNING | Use \Monolog\Level::Warning |
| 75 | Logger::ERROR | Use \Monolog\Level::Error |
| 84 | Logger::CRITICAL | Use \Monolog\Level::Critical |
| 94 | Logger::ALERT | Use \Monolog\Level::Alert |
| 101 | Logger::EMERGENCY | Use \Monolog\Level::Emergency |
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. |
ArrayItem.php
| Line | Element | Reason |
|---|---|---|
| 13 | ArrayItem | use \PhpParser\Node\ArrayItem instead. |
ClosureUse.php
| Line | Element | Reason |
|---|---|---|
| 13 | ClosureUse | use \PhpParser\Node\ClosureUse instead. |
DNumber.php
| Line | Element | Reason |
|---|---|---|
| 13 | DNumber | use \PhpParser\Node\Scalar\Float_ instead. |
Encapsed.php
| Line | Element | Reason |
|---|---|---|
| 13 | Encapsed | use \PhpParser\Node\Scalar\InterpolatedString instead. |
EncapsedStringPart.php
| Line | Element | Reason |
|---|---|---|
| 15 | EncapsedStringPart | use \PhpParser\Node\InterpolatedStringPart instead. |
LNumber.php
| Line | Element | Reason |
|---|---|---|
| 13 | LNumber | use \PhpParser\Node\Scalar\Int_ instead. |
Class_.php
| Line | Element | Reason |
|---|---|---|
| 10 | Class_::MODIFIER_PUBLIC | Use Modifiers::PUBLIC instead |
| 12 | Class_::MODIFIER_PROTECTED | Use Modifiers::PROTECTED instead |
| 14 | Class_::MODIFIER_PRIVATE | Use Modifiers::PRIVATE instead |
| 16 | Class_::MODIFIER_STATIC | Use Modifiers::STATIC instead |
| 18 | Class_::MODIFIER_ABSTRACT | Use Modifiers::ABSTRACT instead |
| 20 | Class_::MODIFIER_FINAL | Use Modifiers::FINAL instead |
| 22 | Class_::MODIFIER_READONLY | Use Modifiers::READONLY instead |
| 25 | Class_::VISIBILITY_MODIFIER_MASK | Use Modifiers::VISIBILITY_MASK instead |
DeclareDeclare.php
| Line | Element | Reason |
|---|---|---|
| 15 | DeclareDeclare | use \PhpParser\Node\DeclareItem instead. |
PropertyProperty.php
| Line | Element | Reason |
|---|---|---|
| 15 | PropertyProperty | use \PhpParser\Node\PropertyItem instead. |
StaticVar.php
| Line | Element | Reason |
|---|---|---|
| 13 | StaticVar | use \PhpParser\Node\StaticVar instead. |
UseUse.php
| Line | Element | Reason |
|---|---|---|
| 15 | UseUse | use \PhpParser\Node\UseItem instead. |
Node.php
| Line | Element | Reason |
|---|---|---|
| 29 | Node::getLine() | Use getStartLine() instead |
NodeTraverser.php
| Line | Element | Reason |
|---|---|---|
| 9 | NodeTraverser::DONT_TRAVERSE_CHILDREN | Use NodeVisitor::DONT_TRAVERSE_CHILDREN instead. |
| 14 | NodeTraverser::STOP_TRAVERSAL | Use NodeVisitor::STOP_TRAVERSAL instead. |
| 19 | NodeTraverser::REMOVE_NODE | Use NodeVisitor::REMOVE_NODE instead. |
| 24 | NodeTraverser::DONT_TRAVERSE_CURRENT_AND_CHILDREN | Use NodeVisitor::DONT_TRAVERSE_CURRENT_AND_CHILDREN instead. |
HttplugFactory.php
| Line | Element | Reason |
|---|---|---|
| 28 | HttplugFactory | since version 1.8, use Psr17Factory instead |
HttpClientDiscovery.php
| Line | Element | Reason |
|---|---|---|
| 15 | HttpClientDiscovery | This will be removed in 2.0. Consider using Psr18ClientDiscovery. |
MessageFactoryDiscovery.php
| Line | Element | Reason |
|---|---|---|
| 15 | MessageFactoryDiscovery | This will be removed in 2.0. Consider using Psr17FactoryDiscovery. |
NotFoundException.php
| Line | Element | Reason |
|---|---|---|
| 14 | NotFoundException | since since version 1.0, and will be removed in 2.0. Use instead. |
Psr17FactoryDiscovery.php
| Line | Element | Reason |
|---|---|---|
| 133 | Psr17FactoryDiscovery::findUrlFactory() | This will be removed in 2.0. Consider using the findUriFactory() method. |
StreamFactoryDiscovery.php
| Line | Element | Reason |
|---|---|---|
| 15 | StreamFactoryDiscovery | This will be removed in 2.0. Consider using Psr17FactoryDiscovery. |
UriFactoryDiscovery.php
| Line | Element | Reason |
|---|---|---|
| 15 | UriFactoryDiscovery | This will be removed in 2.0. Consider using Psr17FactoryDiscovery. |
HttpClient.php
| Line | Element | Reason |
|---|---|---|
| 15 | HttpClient | since version 2.4, use Psr\Http\Client\ClientInterface instead; see https://www.php-fig.org/psr/psr-18/ |
Matching.php
| Line | Element | Reason |
|---|---|---|
| 18 | Matching | since since version 1.2, and will be removed in 2.0. Use instead. |
FilteredStream.php
| Line | Element | Reason |
|---|---|---|
| 186 | FilteredStream::getReadFilter() | since version 1.5, will be removed in 2.0 |
| 32 | FilteredStream::$readFilter | since version 1.5, will be removed in 2.0 |
| 203 | FilteredStream::getWriteFilter() | since version 1.5, will be removed in 2.0 |
| 46 | FilteredStream::$writeFilter | since version 1.5, will be removed in 2.0 |
| 39 | FilteredStream::$writeFilterCallback | since version 1.5, will be removed in 2.0 |
Formatter.php
| Line | Element | Reason |
|---|---|---|
| 34 | Formatter::formatResponse() | since 1.13, use formatResponseForRequest() instead Formats a response. |
DiactorosMessageFactory.php
| Line | Element | Reason |
|---|---|---|
| 23 | DiactorosMessageFactory | This will be removed in php-http/message2.0. Consider using the official Diactoros PSR-17 factory |
GuzzleMessageFactory.php
| Line | Element | Reason |
|---|---|---|
| 20 | GuzzleMessageFactory | This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory |
SlimMessageFactory.php
| Line | Element | Reason |
|---|---|---|
| 23 | SlimMessageFactory | This will be removed in php-http/message2.0. Consider using the official Slim PSR-17 factory |
RegexRequestMatcher.php
| Line | Element | Reason |
|---|---|---|
| 17 | RegexRequestMatcher |
DiactorosStreamFactory.php
| Line | Element | Reason |
|---|---|---|
| 21 | DiactorosStreamFactory | This will be removed in php-http/message2.0. Consider using the official Diactoros PSR-17 factory |
GuzzleStreamFactory.php
| Line | Element | Reason |
|---|---|---|
| 19 | GuzzleStreamFactory | This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory |
SlimStreamFactory.php
| Line | Element | Reason |
|---|---|---|
| 20 | SlimStreamFactory | This will be removed in php-http/message2.0. Consider using the official Slim PSR-17 factory |
DiactorosUriFactory.php
| Line | Element | Reason |
|---|---|---|
| 21 | DiactorosUriFactory | This will be removed in php-http/message2.0. Consider using the official Diactoros PSR-17 factory |
GuzzleUriFactory.php
| Line | Element | Reason |
|---|---|---|
| 21 | GuzzleUriFactory | This will be removed in php-http/message2.0. Consider using the official Guzzle PSR-17 factory |
SlimUriFactory.php
| Line | Element | Reason |
|---|---|---|
| 20 | SlimUriFactory | This will be removed in php-http/message2.0. Consider using the official Slim PSR-17 factory |
NamingConventions.php
| Line | Element | Reason |
|---|---|---|
| 48 | NamingConventions::AZ_UPPER | |
| 58 | NamingConventions::AZ_LOWER |
Functions.php
| Line | Element | Reason |
|---|---|---|
| 296 | assertContainsOnly() | https://github.com/sebastianbergmann/phpunit/issues/6055 |
| 602 | assertNotContainsOnly() | https://github.com/sebastianbergmann/phpunit/issues/6055 |
| 2535 | assertStringNotMatchesFormat() | https://github.com/sebastianbergmann/phpunit/issues/5472 |
| 2569 | assertStringNotMatchesFormatFile() | https://github.com/sebastianbergmann/phpunit/issues/5472 |
Assert.php
| Line | Element | Reason |
|---|---|---|
| 278 | Assert::assertContainsOnly() | https://github.com/sebastianbergmann/phpunit/issues/6055 |
| 590 | Assert::assertNotContainsOnly() | https://github.com/sebastianbergmann/phpunit/issues/6055 |
| 2326 | Assert::assertStringNotMatchesFormat() | https://github.com/sebastianbergmann/phpunit/issues/5472 |
| 2371 | Assert::assertStringNotMatchesFormatFile() | https://github.com/sebastianbergmann/phpunit/issues/5472 |
| 2820 | Assert::containsOnly() | https://github.com/sebastianbergmann/phpunit/issues/6055 |
| 3048 | Assert::isType() | https://github.com/sebastianbergmann/phpunit/issues/6052 |
MockBuilder.php
| Line | Element | Reason |
|---|---|---|
| 137 | MockBuilder::getMockForAbstractClass() | https://github.com/sebastianbergmann/phpunit/issues/5305 |
| 173 | MockBuilder::getMockForTrait() | https://github.com/sebastianbergmann/phpunit/issues/5306 |
| 256 | MockBuilder::addMethods() | https://github.com/sebastianbergmann/phpunit/issues/5320 |
| 379 | MockBuilder::disableAutoload() | https://github.com/sebastianbergmann/phpunit/issues/5309 |
| 398 | MockBuilder::enableAutoload() | https://github.com/sebastianbergmann/phpunit/issues/5309 |
| 417 | MockBuilder::disableArgumentCloning() | https://github.com/sebastianbergmann/phpunit/issues/5315 |
| 438 | MockBuilder::enableArgumentCloning() | https://github.com/sebastianbergmann/phpunit/issues/5315 |
| 459 | MockBuilder::enableProxyingToOriginalMethods() | https://github.com/sebastianbergmann/phpunit/issues/5307 |
| 480 | MockBuilder::disableProxyingToOriginalMethods() | https://github.com/sebastianbergmann/phpunit/issues/5307 |
| 502 | MockBuilder::setProxyTarget() | https://github.com/sebastianbergmann/phpunit/issues/5307 |
| 536 | MockBuilder::disallowMockingUnknownTypes() | https://github.com/sebastianbergmann/phpunit/issues/5308 |
TestCase.php
| Line | Element | Reason |
|---|---|---|
| 1036 | TestCase::returnValue() | Use |
| 1054 | TestCase::returnValueMap() | Use |
| 1070 | TestCase::returnArgument() | Use |
| 1086 | TestCase::returnCallback() | Use |
| 1102 | TestCase::returnSelf() | Use |
| 1124 | TestCase::onConsecutiveCalls() | Use |
| 1249 | TestCase::iniSet() | https://github.com/sebastianbergmann/phpunit/issues/5214 |
| 1281 | TestCase::setLocale() | https://github.com/sebastianbergmann/phpunit/issues/5216 |
| 1449 | TestCase::createTestProxy() | https://github.com/sebastianbergmann/phpunit/issues/5240 |
| 1487 | TestCase::getMockForAbstractClass() | https://github.com/sebastianbergmann/phpunit/issues/5241 |
| 1525 | TestCase::getMockFromWsdl() | https://github.com/sebastianbergmann/phpunit/issues/5242 |
| 1590 | TestCase::getMockForTrait() | https://github.com/sebastianbergmann/phpunit/issues/5243 |
| 1625 | TestCase::getObjectForTrait() | https://github.com/sebastianbergmann/phpunit/issues/5244 |
Runtime.php
| Line | Element | Reason |
|---|---|---|
| 121 | Runtime::getRawBinary() | |
| 131 | Runtime::getBinary() |
ExactMatch.php
| Line | Element | Reason |
|---|---|---|
| 112 | ExactMatch::getBlacklist() | Implement the |
| 125 | ExactMatch::getWhitelist() | Implement the |
GitModified.php
| Line | Element | Reason |
|---|---|---|
| 41 | GitModified::getBlacklist() | Overload the |
| 94 | GitModified::getWhitelist() | Overload the |
GitStaged.php
| Line | Element | Reason |
|---|---|---|
| 43 | GitStaged::getBlacklist() | Overload the |
| 96 | GitStaged::getWhitelist() | Overload the |