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. |
VersionParser.php
Line | Element | Reason |
---|---|---|
237 | VersionParser::normalizeDefaultBranch() | No need to use this anymore in theory, Composer 2 does not normalize any branch names to 9999999-dev anymore |
RelativeDistinguishedName.php
Line | Element | Reason |
---|---|---|
46 | RelativeDistinguishedName::fromBinary() | this function is not yet implemented! Feel free to submit a pull request on github |
TagComparator.php
Line | Element | Reason |
---|---|---|
26 | TagComparator |
NoTrailingCommaInSinglelineArrayFixer.php
Line | Element | Reason |
---|---|---|
30 | NoTrailingCommaInSinglelineArrayFixer |
BracesFixer.php
Line | Element | Reason |
---|---|---|
59 | BracesFixer |
CurlyBracesPositionFixer.php
Line | Element | Reason |
---|---|---|
51 | CurlyBracesPositionFixer |
NativeFunctionTypeDeclarationCasingFixer.php
Line | Element | Reason |
---|---|---|
26 | NativeFunctionTypeDeclarationCasingFixer | in favor of NativeTypeDeclarationCasingFixer |
NoTrailingCommaInListCallFixer.php
Line | Element | Reason |
---|---|---|
29 | NoTrailingCommaInListCallFixer |
NoUnneededCurlyBracesFixer.php
Line | Element | Reason |
---|---|---|
39 | NoUnneededCurlyBracesFixer |
FunctionTypehintSpaceFixer.php
Line | Element | Reason |
---|---|---|
30 | FunctionTypehintSpaceFixer |
NoTrailingCommaInSinglelineFunctionCallFixer.php
Line | Element | Reason |
---|---|---|
27 | NoTrailingCommaInSinglelineFunctionCallFixer |
ClassKeywordRemoveFixer.php
Line | Element | Reason |
---|---|---|
32 | ClassKeywordRemoveFixer |
SingleSpaceAfterConstructFixer.php
Line | Element | Reason |
---|---|---|
44 | SingleSpaceAfterConstructFixer |
NoBlankLinesBeforeNamespaceFixer.php
Line | Element | Reason |
---|---|---|
30 | NoBlankLinesBeforeNamespaceFixer | Use |
SingleBlankLineBeforeNamespaceFixer.php
Line | Element | Reason |
---|---|---|
30 | SingleBlankLineBeforeNamespaceFixer | Use |
NewWithBracesFixer.php
Line | Element | Reason |
---|---|---|
41 | NewWithBracesFixer |
EscapeImplicitBackslashesFixer.php
Line | Element | Reason |
---|---|---|
47 | EscapeImplicitBackslashesFixer | Use |
CompactNullableTypehintFixer.php
Line | Element | Reason |
---|---|---|
27 | CompactNullableTypehintFixer |
NoSpacesInsideParenthesisFixer.php
Line | Element | Reason |
---|---|---|
32 | NoSpacesInsideParenthesisFixer | in favor of SpacesInsideParenthesisFixer |
Token.php
Line | Element | Reason |
---|---|---|
221 | Token::isKeyCaseSensitive() |
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. |
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 |
Node.php
Line | Element | Reason |
---|---|---|
27 | 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. |
Filter.php
Line | Element | Reason |
---|---|---|
34 | Filter::includeDirectory() | |
65 | Filter::excludeDirectory() | |
75 | Filter::excludeFile() |
AssertionFailed.php
Line | Element | Reason |
---|---|---|
21 | AssertionFailed |
AssertionFailedSubscriber.php
Line | Element | Reason |
---|---|---|
19 | AssertionFailedSubscriber |
AssertionSucceeded.php
Line | Element | Reason |
---|---|---|
21 | AssertionSucceeded |
AssertionSucceededSubscriber.php
Line | Element | Reason |
---|---|---|
19 | AssertionSucceededSubscriber |
Functions.php
Line | Element | Reason |
---|---|---|
1866 | assertStringNotMatchesFormat() | https://github.com/sebastianbergmann/phpunit/issues/5472 |
1900 | assertStringNotMatchesFormatFile() | https://github.com/sebastianbergmann/phpunit/issues/5472 |
Assert.php
Line | Element | Reason |
---|---|---|
1618 | Assert::assertStringNotMatchesFormat() | https://github.com/sebastianbergmann/phpunit/issues/5472 |
1654 | Assert::assertStringNotMatchesFormatFile() | https://github.com/sebastianbergmann/phpunit/issues/5472 |
CodeCoverageIgnore.php
Line | Element | Reason |
---|---|---|
21 | CodeCoverageIgnore | https://github.com/sebastianbergmann/phpunit/issues/5236 |
IgnoreClassForCodeCoverage.php
Line | Element | Reason |
---|---|---|
21 | IgnoreClassForCodeCoverage | https://github.com/sebastianbergmann/phpunit/issues/5513 |
IgnoreFunctionForCodeCoverage.php
Line | Element | Reason |
---|---|---|
21 | IgnoreFunctionForCodeCoverage | https://github.com/sebastianbergmann/phpunit/issues/5513 |
IgnoreMethodForCodeCoverage.php
Line | Element | Reason |
---|---|---|
21 | IgnoreMethodForCodeCoverage | https://github.com/sebastianbergmann/phpunit/issues/5513 |
Constraint.php
Line | Element | Reason |
---|---|---|
68 | Constraint::exporter() |
MockBuilder.php
Line | Element | Reason |
---|---|---|
131 | MockBuilder::getMockForAbstractClass() | https://github.com/sebastianbergmann/phpunit/issues/5305 |
162 | MockBuilder::getMockForTrait() | https://github.com/sebastianbergmann/phpunit/issues/5306 |
238 | MockBuilder::addMethods() | https://github.com/sebastianbergmann/phpunit/issues/5320 |
350 | MockBuilder::disableAutoload() | https://github.com/sebastianbergmann/phpunit/issues/5309 |
364 | MockBuilder::enableAutoload() | https://github.com/sebastianbergmann/phpunit/issues/5309 |
378 | MockBuilder::disableArgumentCloning() | https://github.com/sebastianbergmann/phpunit/issues/5315 |
392 | MockBuilder::enableArgumentCloning() | https://github.com/sebastianbergmann/phpunit/issues/5315 |
406 | MockBuilder::enableProxyingToOriginalMethods() | https://github.com/sebastianbergmann/phpunit/issues/5307 |
420 | MockBuilder::disableProxyingToOriginalMethods() | https://github.com/sebastianbergmann/phpunit/issues/5307 |
435 | MockBuilder::setProxyTarget() | https://github.com/sebastianbergmann/phpunit/issues/5307 |
459 | MockBuilder::disallowMockingUnknownTypes() | https://github.com/sebastianbergmann/phpunit/issues/5308 |
TestCase.php
Line | Element | Reason |
---|---|---|
268 | TestCase::returnValue() | Use |
279 | TestCase::returnValueMap() | Use |
290 | TestCase::returnArgument() | Use |
301 | TestCase::returnCallback() | Use |
312 | TestCase::returnSelf() | Use |
329 | TestCase::onConsecutiveCalls() | Use |
1215 | TestCase::iniSet() | https://github.com/sebastianbergmann/phpunit/issues/5214 |
1242 | TestCase::setLocale() | https://github.com/sebastianbergmann/phpunit/issues/5216 |
1393 | TestCase::createTestProxy() | https://github.com/sebastianbergmann/phpunit/issues/5240 |
1424 | TestCase::getMockForAbstractClass() | https://github.com/sebastianbergmann/phpunit/issues/5241 |
1454 | TestCase::getMockFromWsdl() | https://github.com/sebastianbergmann/phpunit/issues/5242 |
1511 | TestCase::getMockForTrait() | https://github.com/sebastianbergmann/phpunit/issues/5243 |
1540 | TestCase::getObjectForTrait() | https://github.com/sebastianbergmann/phpunit/issues/5244 |
1911 | TestCase::registerMockObjectsFromTestArguments() |
IgnoreClassForCodeCoverage.php
Line | Element | Reason |
---|---|---|
19 | IgnoreClassForCodeCoverage | https://github.com/sebastianbergmann/phpunit/issues/5513 |
IgnoreFunctionForCodeCoverage.php
Line | Element | Reason |
---|---|---|
19 | IgnoreFunctionForCodeCoverage | https://github.com/sebastianbergmann/phpunit/issues/5513 |
IgnoreMethodForCodeCoverage.php
Line | Element | Reason |
---|---|---|
19 | IgnoreMethodForCodeCoverage | https://github.com/sebastianbergmann/phpunit/issues/5513 |
MetadataCollection.php
Line | Element | Reason |
---|---|---|
306 | MetadataCollection::isIgnoreClassForCodeCoverage() | https://github.com/sebastianbergmann/phpunit/issues/5513 |
319 | MetadataCollection::isIgnoreMethodForCodeCoverage() | https://github.com/sebastianbergmann/phpunit/issues/5513 |
332 | MetadataCollection::isIgnoreFunctionForCodeCoverage() | https://github.com/sebastianbergmann/phpunit/issues/5513 |
Facade.php
Line | Element | Reason |
---|---|---|
98 | Facade::requireExportOfObjects() |
Configuration.php
Line | Element | Reason |
---|---|---|
277 | Configuration::hasCliArgument() | Use hasCliArguments() instead |
289 | Configuration::cliArgument() | Use cliArguments()[0] instead |
391 | Configuration::restrictDeprecations() | Use source()->restrictDeprecations() instead |
399 | Configuration::restrictNotices() | Use source()->restrictNotices() instead |
407 | Configuration::restrictWarnings() | Use source()->restrictWarnings() instead |
415 | Configuration::hasNonEmptyListOfFilesToBeIncludedInCodeCoverageReport() | Use source()->notEmpty() instead |
423 | Configuration::coverageIncludeDirectories() | Use source()->includeDirectories() instead |
431 | Configuration::coverageIncludeFiles() | Use source()->includeFiles() instead |
439 | Configuration::coverageExcludeDirectories() | Use source()->excludeDirectories() instead |
447 | Configuration::coverageExcludeFiles() | Use source()->excludeFiles() instead |
786 | Configuration::loadPharExtensions() | Use noExtensions() instead |
Message.php
Line | Element | Reason |
---|---|---|
45 | Message::TYPE_SPF | https://datatracker.ietf.org/doc/html/rfc7208#section-3.1 |
ExtLibeventLoop.php
Line | Element | Reason |
---|---|---|
38 | ExtLibeventLoop | use |
ExtLibevLoop.php
Line | Element | Reason |
---|---|---|
29 | ExtLibevLoop | use |
Factory.php
Line | Element | Reason |
---|---|---|
11 | Factory | See Loop instead. |
34 | Factory::create() | See Loop::get() instead. |
Promise.php
Line | Element | Reason |
---|---|---|
155 | Promise::otherwise() | Use |
164 | Promise::always() | Use |
PromiseInterface.php
Line | Element | Reason |
---|---|---|
134 | PromiseInterface::otherwise() | Use catch() instead |
151 | PromiseInterface::always() | Use finally() instead |
Server.php
Line | Element | Reason |
---|---|---|
14 | Server | See |
52 | Server::__construct() | See |
Chunk.php
Line | Element | Reason |
---|---|---|
81 | Chunk::getStart() | Use start() instead |
89 | Chunk::getStartRange() | Use startRange() instead |
97 | Chunk::getEnd() | Use end() instead |
105 | Chunk::getEndRange() | Use endRange() instead |
115 | Chunk::getLines() | Use lines() instead |
Diff.php
Line | Element | Reason |
---|---|---|
85 | Diff::getFrom() | |
95 | Diff::getTo() | |
105 | Diff::getChunks() |
Line.php
Line | Element | Reason |
---|---|---|
54 | Line::getContent() | |
62 | Line::getType() |
Command.php
Line | Element | Reason |
---|---|---|
47 | Command::$defaultName | since Symfony 6.1, use the AsCommand attribute instead |
54 | Command::$defaultDescription | since Symfony 6.1, use the AsCommand attribute instead |
CompleteCommand.php
Line | Element | Reason |
---|---|---|
40 | CompleteCommand::$defaultName | since Symfony 6.1 |
45 | CompleteCommand::$defaultDescription | since Symfony 6.1 |
DumpCompletionCommand.php
Line | Element | Reason |
---|---|---|
33 | DumpCompletionCommand::$defaultName | since Symfony 6.1 |
38 | DumpCompletionCommand::$defaultDescription | since Symfony 6.1 |
StringInput.php
Line | Element | Reason |
---|---|---|
30 | StringInput::REGEX_STRING | since Symfony 6.1 |
Normalizer.php
Line | Element | Reason |
---|---|---|
8 | Normalizer::NONE | since ICU 56 and removed in PHP 8 |
ServiceSubscriberTrait.php
Line | Element | Reason |
---|---|---|
33 | ServiceSubscriberTrait | since symfony/contracts v3.5, use ServiceMethodsSubscriberTrait instead |
ServiceLocatorTest.php
Line | Element | Reason |
---|---|---|
20 | ServiceLocatorTest | since PHPUnit 9.6 |