Deprecated
Table of Contents
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. |
RelativeDistinguishedName.php
Line | Element | Reason |
---|---|---|
46 | RelativeDistinguishedName::fromBinary() | this function is not yet implemented! Feel free to submit a pull request on github |
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 |
---|---|---|
24 | TestListener |
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 |
BlockFactory.php
Line | Element | Reason |
---|---|---|
1023 | BlockFactory::get() | This method should ONLY be used for deserializing data, e.g. from a config or database. For all other purposes, use VanillaBlocks. |
Banner.php
Line | Element | Reason |
---|---|---|
40 | Banner |
Comparator.php
Line | Element | Reason |
---|---|---|
33 | Comparator |
DaylightSensor.php
Line | Element | Reason |
---|---|---|
35 | DaylightSensor | As per the wiki, this is an old hack to force daylight sensors to get updated every game tick. This is necessary to ensure that the daylight sensor's power output is always up to date with the current world time. It's theoretically possible to implement this without a blockentity, but this is here to ensure that vanilla can understand daylight sensors in worlds created by PM. |
FlowerPot.php
Line | Element | Reason |
---|---|---|
37 | FlowerPot |
ItemFrame.php
Line | Element | Reason |
---|---|---|
36 | ItemFrame |
MonsterSpawner.php
Line | Element | Reason |
---|---|---|
35 | MonsterSpawner |
Note.php
Line | Element | Reason |
---|---|---|
32 | Note |
Sign.php
Line | Element | Reason |
---|---|---|
42 | Sign |
Skull.php
Line | Element | Reason |
---|---|---|
36 | Skull |
Entity.php
Line | Element | Reason |
---|---|---|
1470 | Entity::despawnFrom() | WARNING: This function DOES NOT permanently hide the entity from the player. As soon as the entity or player moves, the player will once again be able to see the entity. |
1484 | Entity::despawnFromAll() | WARNING: This function DOES NOT permanently hide the entity from viewers. As soon as the entity or player moves, viewers will once again be able to see the entity. |
ItemFactory.php
Line | Element | Reason |
---|---|---|
450 | ItemFactory::get() | This method should ONLY be used for deserializing data, e.g. from a config or database. For all other purposes, use VanillaItems. |
LegacyStringToItemParser.php
Line | Element | Reason |
---|---|---|
49 | LegacyStringToItemParser |
World.php
Line | Element | Reason |
---|---|---|
620 | World::getChunkPlayers() | WARNING: This function has a misleading name. Contrary to what the name might imply, this function DOES NOT return players who are IN a chunk, rather, it returns players who can SEE the chunk. Returns a list of players who have the target chunk within their view distance. |
AbstractArray.php
Line | Element | Reason |
---|---|---|
135 | AbstractArray::serialize() | The Serializable interface will go away in PHP 9. |
164 | AbstractArray::unserialize() | The Serializable interface will go away in PHP 9. |
BuilderCollection.php
Line | Element | Reason |
---|---|---|
37 | BuilderCollection | this class has been deprecated, and will be removed in 5.0.0. The use-case for this class comes from
a pre- |
DefaultUuidBuilder.php
Line | Element | Reason |
---|---|---|
24 | DefaultUuidBuilder | Transition to UuidBuilder. |
DegradedUuidBuilder.php
Line | Element | Reason |
---|---|---|
31 | DegradedUuidBuilder | DegradedUuid instances are no longer necessary to support 32-bit systems. Transition to DefaultUuidBuilder. |
BigNumberConverter.php
Line | Element | Reason |
---|---|---|
28 | BigNumberConverter | Transition to GenericNumberConverter. |
DegradedNumberConverter.php
Line | Element | Reason |
---|---|---|
23 | DegradedNumberConverter | DegradedNumberConverter is no longer necessary for converting numbers on 32-bit systems. Transition to GenericNumberConverter. |
BigNumberTimeConverter.php
Line | Element | Reason |
---|---|---|
30 | BigNumberTimeConverter | Transition to GenericTimeConverter. |
DegradedTimeConverter.php
Line | Element | Reason |
---|---|---|
23 | DegradedTimeConverter | DegradedTimeConverter is no longer necessary for converting time on 32-bit systems. Transition to GenericTimeConverter. |
DegradedUuid.php
Line | Element | Reason |
---|---|---|
23 | DegradedUuid | DegradedUuid is no longer necessary to represent UUIDs on 32-bit systems. Transition typehints to UuidInterface. |
DeprecatedUuidInterface.php
Line | Element | Reason |
---|---|---|
32 | DeprecatedUuidInterface::getNumberConverter() | This method will be removed in 5.0.0. There is no alternative recommendation, so plan accordingly. |
40 | DeprecatedUuidInterface::getFieldsHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. |
48 | DeprecatedUuidInterface::getClockSeqHiAndReservedHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getClockSeqHiAndReserved(). |
56 | DeprecatedUuidInterface::getClockSeqLowHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getClockSeqLow(). |
64 | DeprecatedUuidInterface::getClockSequenceHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getClockSeq(). |
70 | DeprecatedUuidInterface::getDateTime() | In ramsey/uuid version 5.0.0, this will be removed from the interface. It is available at UuidV1::getDateTime(). |
77 | DeprecatedUuidInterface::getLeastSignificantBitsHex() | This method will be removed in 5.0.0. There is no direct alternative, but the same information may be obtained by splitting in half the value returned by UuidInterface::getHex(). |
84 | DeprecatedUuidInterface::getMostSignificantBitsHex() | This method will be removed in 5.0.0. There is no direct alternative, but the same information may be obtained by splitting in half the value returned by UuidInterface::getHex(). |
92 | DeprecatedUuidInterface::getNodeHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getNode(). |
100 | DeprecatedUuidInterface::getTimeHiAndVersionHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimeHiAndVersion(). |
108 | DeprecatedUuidInterface::getTimeLowHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimeLow(). |
116 | DeprecatedUuidInterface::getTimeMidHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimeMid(). |
124 | DeprecatedUuidInterface::getTimestampHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimestamp(). |
130 | DeprecatedUuidInterface::getUrn() | In ramsey/uuid version 5.0.0, this will be removed from this interface. It has moved to UuidInterface::getUrn(). |
138 | DeprecatedUuidInterface::getVariant() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getVariant(). |
146 | DeprecatedUuidInterface::getVersion() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getVersion(). |
DeprecatedUuidMethodsTrait.php
Line | Element | Reason |
---|---|---|
61 | DeprecatedUuidMethodsTrait::getClockSeqHiAndReserved() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getClockSeqHiAndReserved() and use the arbitrary-precision math library of your choice to convert it to a string integer. |
71 | DeprecatedUuidMethodsTrait::getClockSeqHiAndReservedHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getClockSeqHiAndReserved(). |
83 | DeprecatedUuidMethodsTrait::getClockSeqLow() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getClockSeqLow() and use the arbitrary-precision math library of your choice to convert it to a string integer. |
93 | DeprecatedUuidMethodsTrait::getClockSeqLowHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getClockSeqLow(). |
105 | DeprecatedUuidMethodsTrait::getClockSequence() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getClockSeq() and use the arbitrary-precision math library of your choice to convert it to a string integer. |
115 | DeprecatedUuidMethodsTrait::getClockSequenceHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getClockSeq(). |
124 | DeprecatedUuidMethodsTrait::getNumberConverter() | This method will be removed in 5.0.0. There is no alternative recommendation, so plan accordingly. |
138 | DeprecatedUuidMethodsTrait::getDateTime() | In ramsey/uuid version 5.0.0, this will be removed. It is available at UuidV1::getDateTime(). |
164 | DeprecatedUuidMethodsTrait::getFieldsHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. |
181 | DeprecatedUuidMethodsTrait::getLeastSignificantBits() | This method will be removed in 5.0.0. There is no direct alternative, but the same information may be obtained by splitting in half the value returned by UuidInterface::getHex(). |
193 | DeprecatedUuidMethodsTrait::getLeastSignificantBitsHex() | This method will be removed in 5.0.0. There is no direct alternative, but the same information may be obtained by splitting in half the value returned by UuidInterface::getHex(). |
203 | DeprecatedUuidMethodsTrait::getMostSignificantBits() | This method will be removed in 5.0.0. There is no direct alternative, but the same information may be obtained by splitting in half the value returned by UuidInterface::getHex(). |
215 | DeprecatedUuidMethodsTrait::getMostSignificantBitsHex() | This method will be removed in 5.0.0. There is no direct alternative, but the same information may be obtained by splitting in half the value returned by UuidInterface::getHex(). |
227 | DeprecatedUuidMethodsTrait::getNode() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getNode() and use the arbitrary-precision math library of your choice to convert it to a string integer. |
237 | DeprecatedUuidMethodsTrait::getNodeHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getNode(). |
249 | DeprecatedUuidMethodsTrait::getTimeHiAndVersion() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimeHiAndVersion() and use the arbitrary-precision math library of your choice to convert it to a string integer. |
259 | DeprecatedUuidMethodsTrait::getTimeHiAndVersionHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimeHiAndVersion(). |
271 | DeprecatedUuidMethodsTrait::getTimeLow() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimeLow() and use the arbitrary-precision math library of your choice to convert it to a string integer. |
281 | DeprecatedUuidMethodsTrait::getTimeLowHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimeLow(). |
293 | DeprecatedUuidMethodsTrait::getTimeMid() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimeMid() and use the arbitrary-precision math library of your choice to convert it to a string integer. |
303 | DeprecatedUuidMethodsTrait::getTimeMidHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimeMid(). |
315 | DeprecatedUuidMethodsTrait::getTimestamp() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimestamp() and use the arbitrary-precision math library of your choice to convert it to a string integer. |
329 | DeprecatedUuidMethodsTrait::getTimestampHex() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getTimestamp(). |
344 | DeprecatedUuidMethodsTrait::getUrn() | This has moved to FieldsInterface::getUrn() and is available on UuidV1, UuidV3, UuidV4, and UuidV5. |
355 | DeprecatedUuidMethodsTrait::getVariant() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getVariant(). |
366 | DeprecatedUuidMethodsTrait::getVersion() | Use UuidInterface::getFields() to get a FieldsInterface instance. If it is a FieldsInterface instance, you may call FieldsInterface::getVersion(). |
RandomLibAdapter.php
Line | Element | Reason |
---|---|---|
30 | RandomLibAdapter | This class will be removed in 5.0.0. Use the default RandomBytesGenerator or implement your own generator that implements RandomGeneratorInterface. |
NodeProviderCollection.php
Line | Element | Reason |
---|---|---|
31 | NodeProviderCollection | this class has been deprecated, and will be removed in 5.0.0. The use-case for this class comes from
a pre- |
Uuid.php
Line | Element | Reason |
---|---|---|
116 | Uuid::VALID_PATTERN | Use ValidatorInterface::getPattern() instead. |
135 | Uuid::UUID_TYPE_IDENTIFIER | Use Uuid::UUID_TYPE_DCE_SECURITY instead. |
Assert.php
Line | Element | Reason |
---|---|---|
319 | Assert::isTraversable() | use "isIterable" or "isInstanceOf" instead |
Mixin.php
Line | Element | Reason |
---|---|---|
816 | Mixin::nullOrIsTraversable() | use "isIterable" or "isInstanceOf" instead |
834 | Mixin::allIsTraversable() | use "isIterable" or "isInstanceOf" instead |
856 | Mixin::allNullOrIsTraversable() | use "isIterable" or "isInstanceOf" instead |