Deprecated
Table of Contents
ApiClient.php
| Line | Element | Reason |
|---|---|---|
| 420 | ApiClient::get_shipping_rate() | The rates call is deprecated. Please use method create_shipment_quote() instead. |
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. |
SlackbotHandler.php
| Line | Element | Reason |
|---|---|---|
| 25 | SlackbotHandler | According to Slack the API used on this handler it is deprecated. Therefore this handler will be removed on 2.x Slack suggests to use webhooks instead. Please contact slack for more information. |
SlackHandler.php
| Line | Element | Reason |
|---|---|---|
| 179 | SlackHandler::getAttachmentColor() | Use underlying SlackRecord instead |
| 196 | SlackHandler::stringify() | Use underlying SlackRecord instead |
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 |
