Documentation

Deprecated

Table of Contents

src/Modules/Admin/Application/Services/SessionCleaner.php
src/Modules/Dictionary/Infrastructure/Translation/GoogleTranslateClient.php
src/Modules/Text/Application/Services/SentenceService.php
vendor/amphp/parallel/src/Worker/ContextWorkerPool.php
vendor/composer/InstalledVersions.php
vendor/composer/semver/src/VersionParser.php
vendor/felixfbecker/language-server-protocol/src/CompletionItem.php
vendor/guzzlehttp/guzzle/src/Client.php
vendor/guzzlehttp/guzzle/src/ClientInterface.php
vendor/guzzlehttp/guzzle/src/functions.php
vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php
vendor/guzzlehttp/guzzle/src/Utils.php
vendor/guzzlehttp/psr7/src/Header.php
vendor/kiwilan/php-archive/src/Readers/ArchivePdf.php
vendor/kiwilan/php-archive/src/Readers/ArchivePhar.php
vendor/kiwilan/php-archive/src/Readers/ArchiveRar.php
vendor/kiwilan/php-archive/src/Readers/ArchiveSevenZip.php
vendor/kiwilan/php-archive/src/Readers/ArchiveZip.php
vendor/kiwilan/php-archive/src/Readers/BaseArchive.php
vendor/kiwilan/php-ebook/src/Ebook.php
vendor/kiwilan/php-ebook/src/EbookCover.php
vendor/kiwilan/php-ebook/src/Formats/Epub/Parser/OpfItem.php
vendor/kiwilan/php-ebook/src/Models/BookMeta.php
vendor/kiwilan/php-ebook/src/Models/MetaTitle.php
vendor/kiwilan/php-xml-reader/src/XmlConverter.php
vendor/kiwilan/php-xml-reader/src/XmlReader.php
vendor/league/commonmark/src/Delimiter/DelimiterInterface.php
vendor/league/commonmark/src/Delimiter/DelimiterStack.php
vendor/league/commonmark/src/Environment/Environment.php
vendor/league/commonmark/src/Extension/SmartPunct/QuoteParser.php
vendor/league/commonmark/src/MarkdownConverter.php
vendor/league/commonmark/src/MarkdownConverterInterface.php
vendor/league/commonmark/src/Renderer/MarkdownRendererInterface.php
vendor/league/uri/BaseUri.php
vendor/league/uri/Http.php
vendor/league/uri/Uri.php
vendor/league/uri/UriInfo.php
vendor/league/uri/UriResolver.php
vendor/league/uri/UriTemplate.php
vendor/league/uri-interfaces/Contracts/QueryInterface.php
vendor/league/uri-interfaces/Contracts/UriAccess.php
vendor/league/uri-interfaces/Encoder.php
vendor/league/uri-interfaces/UriString.php
vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Date/DateIntervalFilter.php
vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/SplDoublyLinkedList.php
vendor/nette/schema/src/Schema/Message.php
vendor/nette/utils/src/compatibility.php
vendor/nette/utils/src/Iterators/Mapper.php
vendor/nette/utils/src/Utils/Arrays.php
vendor/nette/utils/src/Utils/Image.php
vendor/nette/utils/src/Utils/Json.php
vendor/nette/utils/src/Utils/Reflection.php
vendor/nette/utils/src/Utils/Strings.php
vendor/nette/utils/src/Utils/Type.php
vendor/nette/utils/src/Utils/Validators.php
vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrayItem.php
vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ClosureUse.php
vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/DNumber.php
vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php
vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/EncapsedStringPart.php
vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/LNumber.php
vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/Class_.php
vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/DeclareDeclare.php
vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/PropertyProperty.php
vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/StaticVar.php
vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/UseUse.php
vendor/nikic/php-parser/lib/PhpParser/Node.php
vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Extends_.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/StaticMethod.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Implements_.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Param.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyWrite.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Return_.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Template.php
vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Var_.php
vendor/phpmailer/phpmailer/src/PHPMailer.php
vendor/phpstan/phpdoc-parser/src/Parser/TokenIterator.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/sebastian/diff/src/Chunk.php
vendor/sebastian/diff/src/Diff.php
vendor/sebastian/diff/src/Line.php
vendor/smalot/pdfparser/src/Smalot/PdfParser/Config.php
vendor/squizlabs/php_codesniffer/src/Config.php
vendor/squizlabs/php_codesniffer/src/Sniffs/AbstractVariableSniff.php
vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/ByteOrderMarkSniff.php
vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/Files/InlineHTMLSniff.php
vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/NamingConventions/CamelCapsFunctionNameSniff.php
vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/PHP/CharacterBeforePHPOpeningTagSniff.php
vendor/squizlabs/php_codesniffer/src/Standards/Generic/Sniffs/VersionControl/SubversionPropertiesSniff.php
vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php
vendor/squizlabs/php_codesniffer/src/Standards/PEAR/Sniffs/NamingConventions/ValidFunctionNameSniff.php
vendor/squizlabs/php_codesniffer/src/Standards/Squiz/Sniffs/PHP/DisallowSizeFunctionsInLoopsSniff.php
vendor/squizlabs/php_codesniffer/src/Tokenizers/PHP.php
vendor/squizlabs/php_codesniffer/src/Util/Common.php
vendor/squizlabs/php_codesniffer/src/Util/Standards.php
vendor/squizlabs/php_codesniffer/src/Util/Tokens.php
vendor/symfony/console/Application.php
vendor/symfony/console/Command/Command.php
vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php
vendor/symfony/service-contracts/ServiceSubscriberTrait.php
vendor/symfony/service-contracts/Test/ServiceLocatorTest.php
vendor/symfony/string/AbstractString.php
vendor/symfony/string/LazyString.php
vendor/symfony/string/UnicodeString.php
vendor/vimeo/psalm/src/Psalm/Codebase.php
vendor/vimeo/psalm/src/Psalm/Type/Atomic/CallableTrait.php

SessionCleaner.php

Line Element Reason
53 SessionCleaner::clearTextFilters()

No longer needed - pagination state is now in URL params

65 SessionCleaner::clearWordFilters()

No longer needed - pagination state is now in URL params

GoogleTranslateClient.php

Line Element Reason
121 GoogleTranslateClient::setDomain()

Domain is no longer used for URL construction. The gtx endpoint uses a fixed domain (translate.googleapis.com).

SentenceService.php

Line Element Reason
68 SentenceService::buildSentencesContainingWordQuery()

Use executeSentencesContainingWordQuery() for direct execution

ContextWorkerPool.php

Line Element Reason
119 ContextWorkerPool::getLimit()

Use getWorkerLimit() instead.

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.

VersionParser.php

Line Element Reason
242 VersionParser::normalizeDefaultBranch()

No need to use this anymore in theory, Composer 2 does not normalize any branch names to 9999999-dev anymore

CompletionItem.php

Line Element Reason
66 CompletionItem::$deprecated

Use tags instead if supported.

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.

ArchivePdf.php

Line Element Reason
56 ArchivePdf::getContent()

Use getContents() instead

ArchivePhar.php

Line Element Reason
31 ArchivePhar::getContent()

Use getContents() instead

ArchiveRar.php

Line Element Reason
62 ArchiveRar::getContent()

Use getContents() instead

ArchiveSevenZip.php

Line Element Reason
29 ArchiveSevenZip::getContent()

Use getContents() instead

ArchiveZip.php

Line Element Reason
63 ArchiveZip::getContent()

Use getContents() instead

BaseArchive.php

Line Element Reason
155 BaseArchive::getFiles()

Use getFileItems() instead.

227 BaseArchive::getContent()

Use getContents() instead

Ebook.php

Line Element Reason
611 Ebook::hasMetadata()

Use hasParser() instead.

637 Ebook::getMetadata()

Use getParser() instead.

EbookCover.php

Line Element Reason
41 EbookCover::getContent()

Use getContents() instead.

OpfItem.php

Line Element Reason
302 OpfItem::getMeta()

Use getMetaItems instead.

BookMeta.php

Line Element Reason
23 BookMeta::getContent()

Use getContents() instead

MetaTitle.php

Line Element Reason
474 MetaTitle::getSlugSimple()

Use getSlug() with parameters instead.

Get simple slug of book title, like the-fellowship-of-the-ring.

533 MetaTitle::getSeriesSlugSimple()

Use getSeriesSlug() instead.

Get simple slug of serie title, like the-lord-of-the-rings.

546 MetaTitle::getSlugSort()

Use getSlug() instead.

554 MetaTitle::getSlugUnique()

Use getSlug() instead.

562 MetaTitle::getSerieSlug()

Use getSeriesSlugSimple() instead.

570 MetaTitle::getSerieSlugSort()

Use getSeriesSlug() instead.

578 MetaTitle::getSerieSlugUnique()

Use getSeriesSlug() instead.

586 MetaTitle::getSlugSortWithSerie()

Use getSlug() instead.

594 MetaTitle::getUniqueFilename()

Use getSlug() instead.

XmlConverter.php

Line Element Reason
64 XmlConverter::getContent()

Use getContents() instead

XmlReader.php

Line Element Reason
311 XmlReader::getContent()

Use getContents() instead.

DelimiterInterface.php

Line Element Reason
30 DelimiterInterface::isActive()

This method is no longer used internally and will be removed in 3.0

35 DelimiterInterface::setActive()

This method is no longer used internally and will be removed in 3.0

DelimiterStack.php

Line Element Reason
183 DelimiterStack::removeEarlierMatches()

This method is no longer used internally and will be removed in 3.0

212 DelimiterStack::searchByCharacter()

This method is no longer used internally and will be removed in 3.0

352 DelimiterStack::getIndex()

This method will be dropped in 3.0 once all delimiters MUST have an index/position

40 DelimiterStack::$missingIndexCache

This property will be removed in 3.0 once all delimiters MUST have an index/position

Environment.php

Line Element Reason
132 Environment::mergeConfig()

Environment::mergeConfig() is deprecated since league/commonmark v2.0 and will be removed in v3.0. Configuration should be set when instantiating the environment instead.

296 Environment::createCommonMarkEnvironment()

Instantiate the environment and add the extension yourself

309 Environment::createGFMEnvironment()

Instantiate the environment and add the extension yourself

QuoteParser.php

Line Element Reason
30 QuoteParser::DOUBLE_QUOTES

This constant is no longer used and will be removed in a future major release

35 QuoteParser::SINGLE_QUOTES

This constant is no longer used and will be removed in a future major release

MarkdownConverter.php

Line Element Reason
75 MarkdownConverter::convertToHtml()

since 2.2; use instead

MarkdownConverterInterface.php

Line Element Reason
24 MarkdownConverterInterface

since 2.2; use instead

33 MarkdownConverterInterface::convertToHtml()

since 2.2; use instead

MarkdownRendererInterface.php

Line Element Reason
24 MarkdownRendererInterface

since 2.3; use instead

BaseUri.php

Line Element Reason
50 BaseUri

since version 7.6.0

539 BaseUri::normalize()

since version 7.6.0

539 BaseUri::normalize()

no longer used by the isSameDocument method

558 BaseUri::removeDotSegments()

since version 7.6.0

558 BaseUri::removeDotSegments()

no longer used by the isSameDocument method

604 BaseUri::resolvePathAndQuery()

since version 7.6.0

604 BaseUri::resolvePathAndQuery()

no longer used by the isSameDocument method

Http.php

Line Element Reason
295 Http::fromBaseUri()

Since version 7.6.0

295 Http::fromBaseUri()

use League\Uri\Http::parse() instead

310 Http::createFromString()

Since version 7.0.0

310 Http::createFromString()

use League\Uri\Http::new() instead

328 Http::createFromComponents()

Since version 7.0.0

328 Http::createFromComponents()

use League\Uri\Http::fromComponents() instead

343 Http::createFromServer()

Since version 7.0.0

343 Http::createFromServer()

use League\Uri\Http::fromServer() instead

358 Http::createFromUri()

Since version 7.0.0

358 Http::createFromUri()

use League\Uri\Http::new() instead

375 Http::createFromBaseUri()

Since version 7.0.0

375 Http::createFromBaseUri()

use League\Uri\Http::fromBaseUri() instead

Uri.php

Line Element Reason
1781 Uri::fromBaseUri()

Since version 7.6.0

1781 Uri::fromBaseUri()

use League\Uri\Uri::parse() instead

1812 Uri::getComponents()

Since version 7.5.0

1812 Uri::getComponents()

use League\Uri\Uri::toComponents() instead

1825 Uri::createFromString()

Since version 7.0.0

1825 Uri::createFromString()

use League\Uri\Uri::new() instead

1840 Uri::createFromComponents()

Since version 7.0.0

1840 Uri::createFromComponents()

use League\Uri\Uri::fromComponents() instead

1858 Uri::createFromDataPath()

Since version 7.0.0

1858 Uri::createFromDataPath()

use League\Uri\Uri::fromDataPath() instead

1875 Uri::createFromBaseUri()

Since version 7.0.0

1875 Uri::createFromBaseUri()

use League\Uri\Uri::fromBaseUri() instead

1892 Uri::createFromUnixPath()

Since version 7.0.0

1892 Uri::createFromUnixPath()

use League\Uri\Uri::fromUnixPath() instead

1907 Uri::createFromWindowsPath()

Since version 7.0.0

1907 Uri::createFromWindowsPath()

use League\Uri\Uri::fromWindowsPath() instead

1922 Uri::createFromUri()

Since version 7.0.0

1922 Uri::createFromUri()

use League\Uri\Uri::new() instead

1937 Uri::createFromServer()

Since version 7.0.0

1937 Uri::createFromServer()

use League\Uri\Uri::fromServer() instead

UriInfo.php

Line Element Reason
25 UriInfo

since version 7.0.0

37 UriInfo::isAbsolute()

use League\Uri\BaseUri::isAbsolute() instead

46 UriInfo::isNetworkPath()

use League\Uri\BaseUri::isNetworkPath() instead

55 UriInfo::isAbsolutePath()

use League\Uri\BaseUri::isAbsolutePath() instead

65 UriInfo::isRelativePath()

use League\Uri\BaseUri::isRelativePath() instead

74 UriInfo::isSameDocument()

use League\Uri\BaseUri::isSameDocument() instead

89 UriInfo::getOrigin()

use League\Uri\BaseUri::origin() instead

100 UriInfo::isCrossOrigin()

use League\Uri\BaseUri::isCrossOrigin() instead

UriResolver.php

Line Element Reason
25 UriResolver

since version 7.0.0

36 UriResolver::resolve()

use League\Uri\BaseUri::resolve() instead

51 UriResolver::relativize()

use League\Uri\BaseUri::relativize() instead

UriTemplate.php

Line Element Reason
284 UriTemplate::getTemplate()

Since version 7.6.0

284 UriTemplate::getTemplate()

use League\Uri\UriTemplate::__toString() instead

QueryInterface.php

Line Element Reason
243 QueryInterface::withoutPair()

Since version 7.3.0

243 QueryInterface::withoutPair()

use League\Uri\Contracts\QueryInterface::withoutPairByKey() instead

UriAccess.php

Line Element Reason
21 UriAccess

since version 7.6.0

Encoder.php

Line Element Reason
463 Encoder::decodePartial()

Since version 7.6.0

463 Encoder::decodePartial()

use League\Uri\Encoder::decodeNecessary() instead

UriString.php

Line Element Reason
716 UriString::isValidHost()

Since version 7.6.0

716 UriString::isValidHost()

use League\Uri\HostRecord::validate() 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.

Message.php

Line Element Reason
42 Message::TYPE_MISMATCH

use Message::TypeMismatch

45 Message::VALUE_OUT_OF_RANGE

use Message::ValueOutOfRange

48 Message::LENGTH_OUT_OF_RANGE

use Message::LengthOutOfRange

51 Message::PATTERN_MISMATCH

use Message::PatternMismatch

54 Message::FAILED_ASSERTION

use Message::FailedAssertion

57 Message::MISSING_ITEM

use Message::MissingItem

60 Message::UNEXPECTED_ITEM

use Message::UnexpectedItem

63 Message::DEPRECATED

use Message::Deprecated

compatibility.php

Line Element Reason
16 IHtmlString

use Nette\HtmlStringable

27 ITranslator

use Nette\Localization\Translator

Mapper.php

Line Element Reason
16 Mapper

use Nette\Utils\Iterables::map()

Arrays.php

Line Element Reason
108 Arrays::searchKey()

use getKeyOffset()

Image.php

Line Element Reason
148 Image::rgb()

use ImageColor::rgb()

111 Image::SHRINK_ONLY

use Image::ShrinkOnly

114 Image::STRETCH

use Image::Stretch

117 Image::FIT

use Image::OrSmaller

120 Image::FILL

use Image::OrBigger

123 Image::EXACT

use Image::Cover

126 Image::EMPTY_GIF

use Image::EmptyGIF

Json.php

Line Element Reason
23 Json::FORCE_ARRAY

use Json::decode(..., forceArrays: true)

26 Json::PRETTY

use Json::encode(..., pretty: true)

29 Json::ESCAPE_UNICODE

use Json::encode(..., asciiSafe: true)

Reflection.php

Line Element Reason
23 Reflection::isBuiltinType()

use Nette\Utils\Validators::isBuiltinType()

30 Reflection::isClassKeyword()

use Nette\Utils\Validators::isClassKeyword()

37 Reflection::getParameterDefaultValue()

use native ReflectionParameter::getDefaultValue()

Strings.php

Line Element Reason
33 Strings::checkEncoding()

use Nette\Utils\Validators::isUnicode()

86 Strings::startsWith()

use str_starts_with()

95 Strings::endsWith()

use str_ends_with()

104 Strings::contains()

use str_contains()

157 Strings::normalizeNewLines()

use Strings::unixNewLines()

27 Strings::TRIM_CHARACTERS

use Strings::TrimCharacters

Type.php

Line Element Reason
198 Type::isSingle()

use isSimple()

Validators.php

Line Element Reason
283 Validators::isList()

use Nette\Utils\Arrays::isList

370 Validators::isType()

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.

Extends_.php

Line Element Reason
37 Extends_::create()

Create using static factory is deprecated, this method should not be called directly by library consumers

StaticMethod.php

Line Element Reason
19 StaticMethod

This contract is totally covered by Tag contract. Every class using StaticMethod also use Tag

Implements_.php

Line Element Reason
37 Implements_::create()

Create using static factory is deprecated, this method should not be called directly by library consumers

Method.php

Line Element Reason
93 Method::create()

Create using static factory is deprecated, this method should not be called directly by library consumers

222 Method::getArguments()

Method deprecated, use self::getParameters()

Param.php

Line Element Reason
65 Param::create()

Create using static factory is deprecated, this method should not be called directly by library consumers

Property.php

Line Element Reason
54 Property::create()

Create using static factory is deprecated, this method should not be called directly by library consumers

PropertyRead.php

Line Element Reason
54 PropertyRead::create()

Create using static factory is deprecated, this method should not be called directly by library consumers

PropertyWrite.php

Line Element Reason
54 PropertyWrite::create()

Create using static factory is deprecated, this method should not be called directly by library consumers

Return_.php

Line Element Reason
40 Return_::create()

Create using static factory is deprecated, this method should not be called directly by library consumers

Template.php

Line Element Reason
52 Template::create()

Create using static factory is deprecated, this method should not be called directly by library consumers

Var_.php

Line Element Reason
54 Var_::create()

Create using static factory is deprecated, this method should not be called directly by library consumers

PHPMailer.php

Line Element Reason
456 PHPMailer::$SingleTo

PHPMailer isn't a mailing list manager!

TokenIterator.php

Line Element Reason
220 TokenIterator::skipNewLineTokens()

Use skipNewLineTokensAndConsumeComments instead (when parsing a type)

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

352 MockBuilder::disableAutoload()

https://github.com/sebastianbergmann/phpunit/issues/5309

366 MockBuilder::enableAutoload()

https://github.com/sebastianbergmann/phpunit/issues/5309

380 MockBuilder::disableArgumentCloning()

https://github.com/sebastianbergmann/phpunit/issues/5315

394 MockBuilder::enableArgumentCloning()

https://github.com/sebastianbergmann/phpunit/issues/5315

410 MockBuilder::enableProxyingToOriginalMethods()

https://github.com/sebastianbergmann/phpunit/issues/5307

424 MockBuilder::disableProxyingToOriginalMethods()

https://github.com/sebastianbergmann/phpunit/issues/5307

441 MockBuilder::setProxyTarget()

https://github.com/sebastianbergmann/phpunit/issues/5307

465 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())

1184 TestCase::iniSet()

https://github.com/sebastianbergmann/phpunit/issues/5214

1211 TestCase::setLocale()

https://github.com/sebastianbergmann/phpunit/issues/5216

1362 TestCase::createTestProxy()

https://github.com/sebastianbergmann/phpunit/issues/5240

1393 TestCase::getMockForAbstractClass()

https://github.com/sebastianbergmann/phpunit/issues/5241

1423 TestCase::getMockFromWsdl()

https://github.com/sebastianbergmann/phpunit/issues/5242

1480 TestCase::getMockForTrait()

https://github.com/sebastianbergmann/phpunit/issues/5243

1509 TestCase::getObjectForTrait()

https://github.com/sebastianbergmann/phpunit/issues/5244

1907 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
285 Configuration::hasCliArgument()

Use hasCliArguments() instead

297 Configuration::cliArgument()

Use cliArguments()[0] instead

399 Configuration::restrictDeprecations()

Use source()->restrictDeprecations() instead

407 Configuration::restrictNotices()

Use source()->restrictNotices() instead

415 Configuration::restrictWarnings()

Use source()->restrictWarnings() instead

423 Configuration::hasNonEmptyListOfFilesToBeIncludedInCodeCoverageReport()

Use source()->notEmpty() instead

431 Configuration::coverageIncludeDirectories()

Use source()->includeDirectories() instead

439 Configuration::coverageIncludeFiles()

Use source()->includeFiles() instead

447 Configuration::coverageExcludeDirectories()

Use source()->excludeDirectories() instead

455 Configuration::coverageExcludeFiles()

Use source()->excludeFiles() instead

804 Configuration::loadPharExtensions()

Use noExtensions() 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()

Config.php

Line Element Reason
171 Config::setIgnoreEncryption()

this is a temporary workaround, don't rely on it

Config.php

Line Element Reason
1767 Config::printConfigData()

Use echo Config::prepareConfigDataForDisplay() instead.

AbstractVariableSniff.php

Line Element Reason
54 AbstractVariableSniff::$phpReservedVars

Use the AbstractVariableSniff::PHP_RESERVED_VARS constant instead.

ByteOrderMarkSniff.php

Line Element Reason
40 ByteOrderMarkSniff::$bomDefinitions

Use the ByteOrderMarkSniff::BOM_DEFINITIONS constant instead.

InlineHTMLSniff.php

Line Element Reason
39 InlineHTMLSniff::$bomDefinitions

Use the InlineHTMLSniff::BOM_DEFINITIONS constant instead.

CamelCapsFunctionNameSniff.php

Line Element Reason
89 CamelCapsFunctionNameSniff::$magicMethods

Use the CamelCapsFunctionNameSniff::MAGIC_METHODS constant instead.

98 CamelCapsFunctionNameSniff::$methodsDoubleUnderscore

Use the CamelCapsFunctionNameSniff::DOUBLE_UNDERSCORE_METHODS constant instead.

107 CamelCapsFunctionNameSniff::$magicFunctions

Use the CamelCapsFunctionNameSniff::MAGIC_FUNCTIONS constant instead.

CharacterBeforePHPOpeningTagSniff.php

Line Element Reason
39 CharacterBeforePHPOpeningTagSniff::$bomDefinitions

Use the CharacterBeforePHPOpeningTagSniff::BOM_DEFINITIONS constant instead.

SubversionPropertiesSniff.php

Line Element Reason
41 SubversionPropertiesSniff::$properties

Use the SubversionPropertiesSniff::REQUIRED_PROPERTIES constant instead.

FileCommentSniff.php

Line Element Reason
79 FileCommentSniff::$tags

Use the FileCommentSniff::EXPECTED_TAGS constant instead.

ValidFunctionNameSniff.php

Line Element Reason
60 ValidFunctionNameSniff::$magicMethods

Use the ValidFunctionNameSniff::MAGIC_METHODS constant instead.

69 ValidFunctionNameSniff::$magicFunctions

Use the ValidFunctionNameSniff::MAGIC_FUNCTIONS constant instead.

DisallowSizeFunctionsInLoopsSniff.php

Line Element Reason
37 DisallowSizeFunctionsInLoopsSniff::$forbiddenFunctions

Use the DisallowSizeFunctionsInLoopsSniff::FORBIDDEN_FUNCTIONS constant instead.

PHP.php

Line Element Reason
520 PHP::$tstringContexts

Use the PHP::T_STRING_CONTEXTS constant instead.

Common.php

Line Element Reason
43 Common::$allowedTypes

Use the Common::ALLOWED_TYPES constant instead.

Standards.php

Line Element Reason
345 Standards::printInstalledStandards()

Use echo Standards::prepareInstalledStandardsForDisplay() instead.

Tokens.php

Line Element Reason
699 Tokens::$weightings

Use the Tokens::getHighestWeightedToken() method instead.

708 Tokens::$assignmentTokens

Use the Tokens::ASSIGNMENT_TOKENS constant instead.

717 Tokens::$equalityTokens

Use the Tokens::EQUALITY_TOKENS constant instead.

726 Tokens::$comparisonTokens

Use the Tokens::COMPARISON_TOKENS constant instead.

735 Tokens::$arithmeticTokens

Use the Tokens::ARITHMETIC_TOKENS constant instead.

744 Tokens::$operators

Use the Tokens::OPERATORS constant instead.

753 Tokens::$booleanOperators

Use the Tokens::BOOLEAN_OPERATORS constant instead.

762 Tokens::$castTokens

Use the Tokens::CAST_TOKENS constant instead.

771 Tokens::$parenthesisOpeners

Use the Tokens::PARENTHESIS_OPENERS constant instead.

780 Tokens::$scopeOpeners

Use the Tokens::SCOPE_OPENERS constant instead.

789 Tokens::$scopeModifiers

Use the Tokens::SCOPE_MODIFIERS constant instead.

798 Tokens::$methodPrefixes

Use the Tokens::METHOD_MODIFIERS constant instead.

807 Tokens::$blockOpeners

Use the Tokens::BLOCK_OPENERS constant instead.

816 Tokens::$emptyTokens

Use the Tokens::EMPTY_TOKENS constant instead.

825 Tokens::$commentTokens

Use the Tokens::COMMENT_TOKENS constant instead.

834 Tokens::$phpcsCommentTokens

Use the Tokens::PHPCS_ANNOTATION_TOKENS constant instead.

845 Tokens::$stringTokens

Use the Tokens::STRING_TOKENS constant instead.

854 Tokens::$textStringTokens

Use the Tokens::TEXT_STRINGS constant instead.

863 Tokens::$bracketTokens

Use the Tokens::BRACKET_TOKENS constant instead.

872 Tokens::$includeTokens

Use the Tokens::INCLUDE_TOKENS constant instead.

881 Tokens::$heredocTokens

Use the Tokens::HEREDOC_TOKENS constant instead.

893 Tokens::$functionNameTokens

Use the Tokens::FUNCTION_NAME_TOKENS constant instead.

902 Tokens::$ooScopeTokens

Use the Tokens::OO_SCOPE_TOKENS constant instead.

913 Tokens::$magicConstants

Use the Tokens::MAGIC_CONSTANTS constant instead.

924 Tokens::$contextSensitiveKeywords

Use the Tokens::CONTEXT_SENSITIVE_KEYWORDS constant instead.

Application.php

Line Element Reason
556 Application::add()

since Symfony 7.4, use Application::addCommand() instead

Command.php

Line Element Reason
60 Command::getDefaultName()

since Symfony 7.3, use the #[AsCommand] attribute instead

74 Command::getDefaultDescription()

since Symfony 7.3, use the #[AsCommand] attribute instead

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

AbstractString.php

Line Element Reason
734 AbstractString::__sleep()

since Symfony 7.4, will be replaced by __unserialize() in 8.0

LazyString.php

Line Element Reason
131 LazyString::__sleep()

since Symfony 7.4, will be replaced by __serialize() in 8.0

UnicodeString.php

Line Element Reason
449 UnicodeString::__wakeup()

since Symfony 7.4, will be replaced by __unserialize() in 8.0

Codebase.php

Line Element Reason
1758 Codebase::filterCompletionItemsByBeginLiteralPart()

to be removed in Psalm 6

CallableTrait.php

Line Element Reason
39 CallableTrait::__construct()

Search results