Documentation

Deprecated

Table of Contents

vendor/composer/InstalledVersions.php
vendor/composer/semver/src/VersionParser.php
vendor/fgrosse/phpasn1/lib/ASN1/Composite/RelativeDistinguishedName.php
vendor/friendsofphp/php-cs-fixer/src/DocBlock/TagComparator.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/ArrayNotation/NoTrailingCommaInSinglelineArrayFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/BracesFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/Basic/CurlyBracesPositionFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/Casing/NativeFunctionTypeDeclarationCasingFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoTrailingCommaInListCallFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/ControlStructure/NoUnneededCurlyBracesFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/FunctionTypehintSpaceFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/FunctionNotation/NoTrailingCommaInSinglelineFunctionCallFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/ClassKeywordRemoveFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/SingleSpaceAfterConstructFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/NoBlankLinesBeforeNamespaceFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/NamespaceNotation/SingleBlankLineBeforeNamespaceFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/NewWithBracesFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/EscapeImplicitBackslashesFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/CompactNullableTypehintFixer.php
vendor/friendsofphp/php-cs-fixer/src/Fixer/Whitespace/NoSpacesInsideParenthesisFixer.php
vendor/friendsofphp/php-cs-fixer/src/Tokenizer/Token.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/Node/Stmt/Class_.php
vendor/nikic/php-parser/lib/PhpParser/Node.php
vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php
vendor/phpunit/php-code-coverage/src/Filter.php
vendor/phpunit/phpunit/src/Event/Events/Test/Assertion/AssertionFailed.php
vendor/phpunit/phpunit/src/Event/Events/Test/Assertion/AssertionFailedSubscriber.php
vendor/phpunit/phpunit/src/Event/Events/Test/Assertion/AssertionSucceeded.php
vendor/phpunit/phpunit/src/Event/Events/Test/Assertion/AssertionSucceededSubscriber.php
vendor/phpunit/phpunit/src/Framework/Assert/Functions.php
vendor/phpunit/phpunit/src/Framework/Assert.php
vendor/phpunit/phpunit/src/Framework/Attributes/CodeCoverageIgnore.php
vendor/phpunit/phpunit/src/Framework/Attributes/IgnoreClassForCodeCoverage.php
vendor/phpunit/phpunit/src/Framework/Attributes/IgnoreFunctionForCodeCoverage.php
vendor/phpunit/phpunit/src/Framework/Attributes/IgnoreMethodForCodeCoverage.php
vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php
vendor/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php
vendor/phpunit/phpunit/src/Framework/TestCase.php
vendor/phpunit/phpunit/src/Metadata/IgnoreClassForCodeCoverage.php
vendor/phpunit/phpunit/src/Metadata/IgnoreFunctionForCodeCoverage.php
vendor/phpunit/phpunit/src/Metadata/IgnoreMethodForCodeCoverage.php
vendor/phpunit/phpunit/src/Metadata/MetadataCollection.php
vendor/phpunit/phpunit/src/Runner/Extension/Facade.php
vendor/phpunit/phpunit/src/TextUI/Configuration/Configuration.php
vendor/react/dns/src/Model/Message.php
vendor/react/event-loop/src/ExtLibeventLoop.php
vendor/react/event-loop/src/ExtLibevLoop.php
vendor/react/event-loop/src/Factory.php
vendor/react/promise/src/Promise.php
vendor/react/promise/src/PromiseInterface.php
vendor/react/socket/src/Server.php
vendor/sebastian/diff/src/Chunk.php
vendor/sebastian/diff/src/Diff.php
vendor/sebastian/diff/src/Line.php
vendor/symfony/console/Command/Command.php
vendor/symfony/console/Command/CompleteCommand.php
vendor/symfony/console/Command/DumpCompletionCommand.php
vendor/symfony/console/Input/StringInput.php
vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php
vendor/symfony/service-contracts/ServiceSubscriberTrait.php
vendor/symfony/service-contracts/Test/ServiceLocatorTest.php

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 blank_lines_before_namespace with config: ['min_line_breaks' => 0, 'max_line_breaks' => 1]

SingleBlankLineBeforeNamespaceFixer.php

Line Element Reason
30 SingleBlankLineBeforeNamespaceFixer

Use blank_lines_before_namespace with config: ['min_line_breaks' => 2, 'max_line_breaks' => 2] (default)

NewWithBracesFixer.php

Line Element Reason
41 NewWithBracesFixer

EscapeImplicitBackslashesFixer.php

Line Element Reason
47 EscapeImplicitBackslashesFixer

Use string_implicit_backslashes with config: ['single_quoted' => 'ignore', 'double_quoted' => 'escape', 'heredoc' => 'escape'] (default)

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 $double->willReturn() instead of $double->will($this->returnValue())

279 TestCase::returnValueMap()

Use $double->willReturnMap() instead of $double->will($this->returnValueMap())

290 TestCase::returnArgument()

Use $double->willReturnArgument() instead of $double->will($this->returnArgument())

301 TestCase::returnCallback()

Use $double->willReturnCallback() instead of $double->will($this->returnCallback())

312 TestCase::returnSelf()

Use $double->willReturnSelf() instead of $double->will($this->returnSelf())

329 TestCase::onConsecutiveCalls()

Use $double->willReturn() instead of $double->will($this->onConsecutiveCalls())

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 ExtEventLoop instead.

ExtLibevLoop.php

Line Element Reason
29 ExtLibevLoop

use ExtEvLoop instead.

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

164 Promise::always()

Use finally() instead

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 SocketServer instead

52 Server::__construct()

See SocketServer instead

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

Search results