Deprecated
Table of Contents
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. |
Version.php
| Line | Element | Reason |
|---|---|---|
| 47 | Version::getVersionWithShortCommit() | |
| 70 | Version::getCommitHash() | |
| 83 | Version::getShortCommitHash() |
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() |
MarkdownConverterInterface.php
| Line | Element | Reason |
|---|---|---|
| 24 | MarkdownConverterInterface | |
| 33 | MarkdownConverterInterface::convertToHtml() |
MarkdownRendererInterface.php
| Line | Element | Reason |
|---|---|---|
| 24 | MarkdownRendererInterface |
AbstractCsv.php
| Line | Element | Reason |
|---|---|---|
| 476 | AbstractCsv::getStreamFilterMode() | since version 9.7.0 |
| 476 | AbstractCsv::getStreamFilterMode() | use League\Csv\AbstractCsv::supportsStreamFilterOnRead() or League\Csv\AbstractCsv::supportsStreamFilterOnWrite() instead |
| 492 | AbstractCsv::supportsStreamFilter() | since version 9.7.0 |
| 492 | AbstractCsv::supportsStreamFilter() | use League\Csv\AbstractCsv::supportsStreamFilterOnRead() or League\Csv\AbstractCsv::supportsStreamFilterOnWrite() instead |
| 507 | AbstractCsv::getContent() | since version 9.7.0 |
| 507 | AbstractCsv::getContent() | use League\Csv\AbstractCsv::toString() instead |
| 522 | AbstractCsv::__toString() | since version 9.1.0 |
| 522 | AbstractCsv::__toString() | use League\Csv\AbstractCsv::toString() instead |
| 543 | AbstractCsv::sendHeaders() | since version 9.17.0 |
| 543 | AbstractCsv::sendHeaders() | the method no longer affect the outcome of the class, use League\Csv\HttpHeaders::forFileDownload instead |
| 583 | AbstractCsv::output() | since version 9.18.0 |
| 583 | AbstractCsv::output() | use League\Csv\AbstractCsv::download() instead |
| 605 | AbstractCsv::addStreamFilter() | since version 9.22.0 |
| 605 | AbstractCsv::addStreamFilter() | use League\Csv\AbstractCsv::appendStreamFilterOnRead() or League\Csv\AbstractCsv::prependStreamFilterOnRead() instead |
| 622 | AbstractCsv::createFromFileObject() | since version 9.27.0 Returns a new instance from a SplFileObject. |
| 622 | AbstractCsv::createFromFileObject() | use League\Csv\AbstractCsv::from() instead |
| 637 | AbstractCsv::createFromStream() | since version 9.27.0 Returns a new instance from a PHP resource stream. |
| 637 | AbstractCsv::createFromStream() | use League\Csv\AbstractCsv::from() instead |
| 652 | AbstractCsv::createFromString() | since version 9.27.0 Returns a new instance from a string. |
| 652 | AbstractCsv::createFromString() | use League\Csv\AbstractCsv::fromString() instead |
| 670 | AbstractCsv::createFromPath() | since version 9.27.0 Returns a new instance from a file path. |
| 670 | AbstractCsv::createFromPath() | use League\Csv\AbstractCsv::from() instead |
ByteSequence.php
| Line | Element | Reason |
|---|---|---|
| 22 | ByteSequence | since version 9.16.0 |
CharsetConverter.php
| Line | Element | Reason |
|---|---|---|
| 371 | CharsetConverter::appendTo() | since version 9.22.0 |
| 371 | CharsetConverter::appendTo() | use League\Csv\CharserConverter::appendOnReadTo() or League\Csv\CharserConverter::appendOnWriteTo() instead |
| 392 | CharsetConverter::prependTo() | since version 9.22.0 |
| 392 | CharsetConverter::prependTo() | use League\Csv\CharserConverter::prependOnReadTo() or League\Csv\CharserConverter::prependOnWriteTo() instead |
EncloseField.php
| Line | Element | Reason |
|---|---|---|
| 48 | EncloseField | since version 9.10.0 |
| 105 | EncloseField::onCreate() | use League\Csv\Writer::forceEnclosure() instead |
EscapeFormula.php
| Line | Element | Reason |
|---|---|---|
| 142 | EscapeFormula::isStringable() | since 9.7.2 will be removed in the next major release |
| 155 | EscapeFormula::__invoke() | since 9.11.0 will be removed in the next major release |
| 155 | EscapeFormula::__invoke() | use League\Csv\EscapeFormula::escapeRecord() instead |
FragmentFinder.php
| Line | Element | Reason |
|---|---|---|
| 436 | FragmentFinder::create() | Since version 9.22.0 |
| 436 | FragmentFinder::create() | use League\Csv\FragmentFinder::__construct() |
functions.php
| Line | Element | Reason |
|---|---|---|
| 29 | bom_match() | since version 9.7.0 |
| 53 | delimiter_detect() | since version 9.7.0 |
HTMLConverter.php
| Line | Element | Reason |
|---|---|---|
| 248 | HTMLConverter::create() | Since version 9.22.0 |
| 248 | HTMLConverter::create() | use League\Csv\HTMLConverter::__construct() |
Info.php
| Line | Element | Reason |
|---|---|---|
| 38 | Info::fetchBOMSequence() | since version 9.16.0 |
| 38 | Info::fetchBOMSequence() | use League\Csv\Bom::tryFromSequence() instead |
InvalidArgument.php
| Line | Element | Reason |
|---|---|---|
| 29 | InvalidArgument::__construct() | since version 9.7.0 |
JsonConverter.php
| Line | Element | Reason |
|---|---|---|
| 596 | JsonConverter::create() | Since version 9.22.0 |
| 596 | JsonConverter::create() | use League\Csv\JsonConverter::__construct() instead |
Limit.php
| Line | Element | Reason |
|---|---|---|
| 37 | Limit::new() | Since version 9.25.0 |
| 37 | Limit::new() | use League\Csv\JsonConverter::__construct() instead |
Reader.php
| Line | Element | Reason |
|---|---|---|
| 684 | Reader::fetchColumnByName() | since version 9.23.0 |
| 684 | Reader::fetchColumnByName() | use League\Csv\Resultset::fetchColumn() instead |
| 700 | Reader::fetchColumnByOffset() | since version 9.23.0 |
| 700 | Reader::fetchColumnByOffset() | use League\Csv\Resultset::fetchColumn() instead |
| 713 | Reader::fetchOne() | since version 9.9.0 |
| 713 | Reader::fetchOne() | use League\Csv\Reader::nth() instead |
| 733 | Reader::getObjects() | Since version 9.15.0 |
| 733 | Reader::getObjects() | use League\Csv\Reader::getRecordsAsObject() instead |
| 751 | Reader::createFromPath() | since version 9.27.0 Returns a new instance from a file path. |
| 751 | Reader::createFromPath() | use League\Csv\AbstractCsv::from() instead |
ResultSet.php
| Line | Element | Reason |
|---|---|---|
| 678 | ResultSet::fetchColumnByName() | since version 9.23.0 |
| 678 | ResultSet::fetchColumnByName() | use League\Csv\Resultset::fetchColumn() instead |
| 696 | ResultSet::fetchColumnByOffset() | since version 9.23.0 |
| 696 | ResultSet::fetchColumnByOffset() | use League\Csv\Resultset::fetchColumn() instead |
| 711 | ResultSet::fetchOne() | since version 9.9.0 |
| 711 | ResultSet::fetchOne() | use League\Csv\Resultset::nth() instead |
| 731 | ResultSet::getObjects() | Since version 9.15.0 |
| 731 | ResultSet::getObjects() | use League\Csv\ResultSet::getRecordsAsObject() instead |
| 742 | ResultSet::createFromTabularDataReader() | use League\Csv\ResultSet::from() instead |
| 751 | ResultSet::createFromRecords() | use League\Csv\ResultSet::from() instead |
RFC4180Field.php
| Line | Element | Reason |
|---|---|---|
| 51 | RFC4180Field | since version 9.2.0 |
| 100 | RFC4180Field::addFormatterTo() | use League\Csv\Reader::setEscape or League\Csv\Writer::setEscape instead |
| 160 | RFC4180Field::onCreate() | use League\Csv\Reader::setEscape or League\Csv\Writer::setEscape instead |
AfterMapping.php
| Line | Element | Reason |
|---|---|---|
| 26 | AfterMapping | since version 9.17.0 |
| 26 | AfterMapping | use League\Csv\Serializer\MapRecord instead |
| 32 | AfterMapping::__construct() | use League\Csv\Serializer\MapRecord instead |
Denormalizer.php
| Line | Element | Reason |
|---|---|---|
| 69 | Denormalizer::allowEmptyStringAsNull() | since version 9.17.0 |
| 69 | Denormalizer::allowEmptyStringAsNull() | use League\Csv\Serializer\MapRecord::$convertEmptyStringToNull or League\Csv\Serializer\MapCell::$convertEmptyStringToNullinstead |
| 83 | Denormalizer::disallowEmptyStringAsNull() | since version 9.17.0 |
| 83 | Denormalizer::disallowEmptyStringAsNull() | use League\Csv\Serializer\MapRecord::$convertEmptyStringToNull or League\Csv\Serializer\MapCell::$convertEmptyStringToNullinstead |
Statement.php
| Line | Element | Reason |
|---|---|---|
| 360 | Statement::applySelect() | Since version 9.16.0 |
| 360 | Statement::applySelect() | this method no longer affects on the outcome of the class, use League\Csv\Statement::process() instead |
| 409 | Statement::filter() | Since version 9.15.0 |
| 409 | Statement::filter() | this method no longer affects on the outcome of the class, use League\Csv\Statement::applyFilter() instead |
| 424 | Statement::applyFilter() | Since version 9.16.0 |
| 424 | Statement::applyFilter() | this method no longer affects on the outcome of the class, use League\Csv\Statement::process() instead |
| 449 | Statement::buildOrderBy() | Since version 9.16.0 |
| 449 | Statement::buildOrderBy() | this method no longer affects on the outcome of the class, use League\Csv\Statement::process() instead |
| 500 | Statement::create() | Since version 9.22.0 |
| 500 | Statement::create() | use League\Csv\Statement::__construct() instead |
SyntaxError.php
| Line | Element | Reason |
|---|---|---|
| 38 | SyntaxError::__construct() | since version 9.7.0 |
TabularDataReader.php
| Line | Element | Reason |
|---|---|---|
| 97 | TabularDataReader::fetchOne() | since version 9.9.0 Returns the nth record from the tabular data. By default, if no index is provided the first record of the tabular data is returned |
| 97 | TabularDataReader::fetchOne() | use League\Csv\TabularDataReader::nth() instead |
UnavailableFeature.php
| Line | Element | Reason |
|---|---|---|
| 29 | UnavailableFeature::__construct() | since version 9.7.0 |
Writer.php
| Line | Element | Reason |
|---|---|---|
| 262 | Writer::formatRecord() | since version 9.8.0 |
| 262 | Writer::formatRecord() | no longer affecting the class behaviour |
| 278 | Writer::addRecord() | Since version 9.9.0 |
| 278 | Writer::addRecord() | no longer affecting the class behaviour |
| 292 | Writer::consolidate() | Since version 9.9.0 |
| 292 | Writer::consolidate() | no longer affecting the class behaviour |
| 317 | Writer::getNewline() | Since version 9.10.0 |
| 317 | Writer::getNewline() | use League\Csv\Writer::getEndOfLine() |
| 332 | Writer::setNewline() | Since version 9.10.0 |
| 332 | Writer::setNewline() | use League\Csv\Writer::setEndOfLine() |
| 347 | Writer::relaxEnclosure() | Since version 9.22.0 |
| 347 | Writer::relaxEnclosure() | use League\Csv\Writer::necessaryEnclosure() |
XMLConverter.php
| Line | Element | Reason |
|---|---|---|
| 292 | XMLConverter::convert() | Since version 9.22.0 |
| 292 | XMLConverter::convert() | use League\Csv\XMLConverter::impoprt() |
| 310 | XMLConverter::create() | Since version 9.22.0 |
| 310 | XMLConverter::create() | use League\Csv\XMLConverter::__construct() |
Directory.php
| Line | Element | Reason |
|---|---|---|
| 8 | Directory |
File.php
| Line | Element | Reason |
|---|---|---|
| 8 | File |
FilesystemInterface.php
| Line | Element | Reason |
|---|---|---|
| 286 | FilesystemInterface::get() |
Handler.php
| Line | Element | Reason |
|---|---|---|
| 10 | Handler |
MountManager.php
| Line | Element | Reason |
|---|---|---|
| 642 | MountManager::get() |
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 |
|---|---|---|
| 301 | Http::fromBaseUri() | Since version 7.6.0 |
| 301 | Http::fromBaseUri() | use League\Uri\Http::parse() instead |
| 316 | Http::createFromString() | Since version 7.0.0 |
| 316 | Http::createFromString() | use League\Uri\Http::new() instead |
| 334 | Http::createFromComponents() | Since version 7.0.0 |
| 334 | Http::createFromComponents() | use League\Uri\Http::fromComponents() instead |
| 349 | Http::createFromServer() | Since version 7.0.0 |
| 349 | Http::createFromServer() | use League\Uri\Http::fromServer() instead |
| 364 | Http::createFromUri() | Since version 7.0.0 |
| 364 | Http::createFromUri() | use League\Uri\Http::new() instead |
| 381 | Http::createFromBaseUri() | Since version 7.0.0 |
| 381 | Http::createFromBaseUri() | use League\Uri\Http::fromBaseUri() instead |
Uri.php
| Line | Element | Reason |
|---|---|---|
| 1811 | Uri::fromBaseUri() | Since version 7.6.0 |
| 1811 | Uri::fromBaseUri() | use League\Uri\Uri::parse() instead |
| 1837 | Uri::getComponents() | Since version 7.5.0 |
| 1837 | Uri::getComponents() | use League\Uri\Uri::toComponents() instead |
| 1850 | Uri::createFromString() | Since version 7.0.0 |
| 1850 | Uri::createFromString() | use League\Uri\Uri::new() instead |
| 1865 | Uri::createFromComponents() | Since version 7.0.0 |
| 1865 | Uri::createFromComponents() | use League\Uri\Uri::fromComponents() instead |
| 1883 | Uri::createFromDataPath() | Since version 7.0.0 |
| 1883 | Uri::createFromDataPath() | use League\Uri\Uri::fromDataPath() instead |
| 1900 | Uri::createFromBaseUri() | Since version 7.0.0 |
| 1900 | Uri::createFromBaseUri() | use League\Uri\Uri::fromBaseUri() instead |
| 1917 | Uri::createFromUnixPath() | Since version 7.0.0 |
| 1917 | Uri::createFromUnixPath() | use League\Uri\Uri::fromUnixPath() instead |
| 1932 | Uri::createFromWindowsPath() | Since version 7.0.0 |
| 1932 | Uri::createFromWindowsPath() | use League\Uri\Uri::fromWindowsPath() instead |
| 1947 | Uri::createFromUri() | Since version 7.0.0 |
| 1947 | Uri::createFromUri() | use League\Uri\Uri::new() instead |
| 1962 | Uri::createFromServer() | Since version 7.0.0 |
| 1962 | 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 |
|---|---|---|
| 287 | UriTemplate::getTemplate() | Since version 7.6.0 |
| 287 | UriTemplate::getTemplate() | use League\Uri\UriTemplate::__toString() instead |
QueryInterface.php
| Line | Element | Reason |
|---|---|---|
| 261 | QueryInterface::withoutPair() | Since version 7.3.0 |
| 261 | 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 |
|---|---|---|
| 501 | Encoder::decodePartial() | Since version 7.6.0 |
| 501 | Encoder::decodePartial() | use League\Uri\Encoder::decodeNecessary() instead |
UriString.php
| Line | Element | Reason |
|---|---|---|
| 750 | UriString::isValidHost() | Since version 7.6.0 |
| 750 | UriString::isValidHost() | use League\Uri\HostRecord::validate() instead |
FileInputStream.php
| Line | Element | Reason |
|---|---|---|
| 17 | FileInputStream | since 2.4, to remove in 3.0. Use a string in the scanner instead. |
InputStream.php
| Line | Element | Reason |
|---|---|---|
| 16 | InputStream | since 2.4, to remove in 3.0. Use a string in the scanner instead. |
StringInputStream.php
| Line | Element | Reason |
|---|---|---|
| 46 | StringInputStream | since 2.4, to remove in 3.0. Use a string in the scanner instead. |
| 136 | StringInputStream::getCurrentLine() | |
| 176 | StringInputStream::getColumnOffset() |
ElasticaFormatter.php
| Line | Element | Reason |
|---|---|---|
| 66 | ElasticaFormatter::getType() | since Elastica 7 type has no effect |
FlowdockFormatter.php
| Line | Element | Reason |
|---|---|---|
| 20 | FlowdockFormatter | Since 2.9.0 and 3.3.0, Flowdock was shutdown we will thus drop this handler in Monolog 4 |
CubeHandler.php
| Line | Element | Reason |
|---|---|---|
| 24 | CubeHandler | Since 2.8.0 and 3.2.0, Cube appears abandoned and thus we will drop this handler in Monolog 4 |
FlowdockHandler.php
| Line | Element | Reason |
|---|---|---|
| 33 | FlowdockHandler | Since 2.9.0 and 3.3.0, Flowdock was shutdown we will thus drop this handler in Monolog 4 |
PHPConsoleHandler.php
| Line | Element | Reason |
|---|---|---|
| 44 | PHPConsoleHandler | Since 2.8.0 and 3.2.0, PHPConsole is abandoned and thus we will drop this handler in Monolog 4 |
SwiftMailerHandler.php
| Line | Element | Reason |
|---|---|---|
| 29 | SwiftMailerHandler | Since Monolog 2.6. Use SymfonyMailerHandler instead. |
Message.php
| Line | Element | Reason |
|---|---|---|
| 43 | Message::TYPE_MISMATCH | use Message::TypeMismatch |
| 46 | Message::VALUE_OUT_OF_RANGE | use Message::ValueOutOfRange |
| 49 | Message::LENGTH_OUT_OF_RANGE | use Message::LengthOutOfRange |
| 52 | Message::PATTERN_MISMATCH | use Message::PatternMismatch |
| 55 | Message::FAILED_ASSERTION | use Message::FailedAssertion |
| 58 | Message::MISSING_ITEM | use Message::MissingItem |
| 61 | Message::UNEXPECTED_ITEM | use Message::UnexpectedItem |
| 64 | 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 |
|---|---|---|
| 109 | Arrays::searchKey() | use getKeyOffset() |
Image.php
| Line | Element | Reason |
|---|---|---|
| 150 | Image::rgb() | use ImageColor::rgb() |
| 113 | Image::SHRINK_ONLY | use Image::ShrinkOnly |
| 116 | Image::STRETCH | use Image::Stretch |
| 119 | Image::FIT | use Image::OrSmaller |
| 122 | Image::FILL | use Image::OrBigger |
| 125 | Image::EXACT | use Image::Cover |
| 128 | Image::EMPTY_GIF | use Image::EmptyGIF |
Json.php
| Line | Element | Reason |
|---|---|---|
| 25 | Json::FORCE_ARRAY | use Json::decode(..., forceArrays: true) |
| 28 | Json::PRETTY | use Json::encode(..., pretty: true) |
| 31 | Json::ESCAPE_UNICODE | use Json::encode(..., asciiSafe: true) |
Reflection.php
| Line | Element | Reason |
|---|---|---|
| 25 | Reflection::isBuiltinType() | use Nette\Utils\Validators::isBuiltinType() |
| 31 | Reflection::isClassKeyword() | use Nette\Utils\Validators::isClassKeyword() |
Strings.php
| Line | Element | Reason |
|---|---|---|
| 34 | Strings::checkEncoding() | use Nette\Utils\Validators::isUnicode() |
| 87 | Strings::startsWith() | use str_starts_with() |
| 96 | Strings::endsWith() | use str_ends_with() |
| 105 | Strings::contains() | use str_contains() |
| 158 | Strings::normalizeNewLines() | use Strings::unixNewLines() |
Type.php
| Line | Element | Reason |
|---|---|---|
| 232 | Type::isSingle() | use isSimple() |
Validators.php
| Line | Element | Reason |
|---|---|---|
| 284 | Validators::isList() | use Nette\Utils\Arrays::isList |
| 371 | 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. |
Parser.php
| Line | Element | Reason |
|---|---|---|
| 441 | Parser::voidLeft() | @TODO needs test |
Stream.php
| Line | Element | Reason |
|---|---|---|
| 62 | Stream::__toString() | We will need to get rid of this again at some point, we can't assume all streams will be strings |
ParseDirectoryCommand.php
| Line | Element | Reason |
|---|---|---|
| 71 | ParseDirectoryCommand::getExcludedSpecification() | Specification definition on parse directory is deprecated. Use @{see self::getExclude()} instead. |
ListItem.php
| Line | Element | Reason |
|---|---|---|
| 17 | ListItem | Needs to be removed duplicate of ListItemNode |
MarkupLanguageParser.php
| Line | Element | Reason |
|---|---|---|
| 50 | MarkupLanguageParser::getSubParser() | one should use injected rules in a rule. Not subparsers |
LinesIterator.php
| Line | Element | Reason |
|---|---|---|
| 96 | LinesIterator::prev() | Work around for Production's eating one line too many |
functions.php
| Line | Element | Reason |
|---|---|---|
| 24 | populateTemperature() |
Pizza.php
| Line | Element | Reason |
|---|---|---|
| 26 | Pizza::TYPE_AMERICAN | |
| 45 | Pizza::$extra |
Pizzeria.php
| Line | Element | Reason |
|---|---|---|
| 52 | Pizzeria::doOldOrder() | This ordering method should no longer be used; it will always fail. |
Product.php
| Line | Element | Reason |
|---|---|---|
| 20 | Product::PROTECTED_CONSTANT |
AssemblerAbstract.php
| Line | Element | Reason |
|---|---|---|
| 129 | AssemblerAbstract::deduplicateTypes() | the functionality in this method has been moved to the Compound type in the latest unreleased version of the TypeResolver library |
DescriptionDescriptor.php
| Line | Element | Reason |
|---|---|---|
| 67 | DescriptionDescriptor::__toString() | will be removed in v4 |
ProjectInterface.php
| Line | Element | Reason |
|---|---|---|
| 33 | ProjectInterface::getFiles() | Please use the getFiles method on the DocumentationSet |
| 40 | ProjectInterface::getIndexes() | Please use the getIndexes method on the DocumentationSet |
ProjectDescriptor.php
| Line | Element | Reason |
|---|---|---|
| 61 | ProjectDescriptor::getFiles() | Please use DocumentationSetDescriptor::getFiles() |
| 71 | ProjectDescriptor::getIndexes() | Please use DocumentationSetDescriptor::getIndexes() |
| 143 | ProjectDescriptor::getNamespace() | |
| 166 | ProjectDescriptor::getPackage() | |
| 177 | ProjectDescriptor::getApiDocumentationSet() | As soon as we are done migrating to multiple API Documentation sets, this method becomes invalid and should be removed. |
IsInFile.php
| Line | Element | Reason |
|---|---|---|
| 72 | IsInFile::getLine() | use getStartLocation()->getLineNumber() instead |
LinkRenderer.php
| Line | Element | Reason |
|---|---|---|
| 64 | LinkRenderer::withProject() | will be removed once getProject is removed |
| 81 | LinkRenderer::getProject() | use getDocumentationSet() |
phpunit_assert.php
| Line | Element | Reason |
|---|---|---|
| 122 | Assert::assertArraySubset() | https://github.com/sebastianbergmann/phpunit/issues/3494 |
| 255 | Assert::assertAttributeContains() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 350 | Assert::assertAttributeNotContains() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 419 | Assert::assertAttributeContainsOnly() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 471 | Assert::assertAttributeNotContainsOnly() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 519 | Assert::assertAttributeCount() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 566 | Assert::assertAttributeNotCount() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 681 | Assert::assertAttributeEquals() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 813 | Assert::assertAttributeNotEquals() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 853 | Assert::assertAttributeEmpty() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 888 | Assert::assertAttributeNotEmpty() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 922 | Assert::assertAttributeGreaterThan() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 961 | Assert::assertAttributeGreaterThanOrEqual() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 996 | Assert::assertAttributeLessThan() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 1031 | Assert::assertAttributeLessThanOrEqual() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 1600 | Assert::assertAttributeSame() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 1648 | Assert::assertAttributeNotSame() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 1692 | Assert::assertAttributeInstanceOf() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 1738 | Assert::assertAttributeNotInstanceOf() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 1758 | Assert::assertInternalType() | https://github.com/sebastianbergmann/phpunit/issues/3369 |
| 1782 | Assert::assertAttributeInternalType() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 1967 | Assert::assertNotInternalType() | https://github.com/sebastianbergmann/phpunit/issues/3369 |
| 2158 | Assert::assertAttributeNotInternalType() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 2842 | Assert::attribute() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 2881 | Assert::attributeEqualTo() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 3032 | Assert::readAttribute() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 3077 | Assert::getStaticAttribute() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
| 3120 | Assert::getObjectAttribute() | https://github.com/sebastianbergmann/phpunit/issues/3338 |
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! |
POP3.php
| Line | Element | Reason |
|---|---|---|
| 50 | POP3::VERSION | This constant will be removed in PHPMailer 8.0. Use |
SMTP.php
| Line | Element | Reason |
|---|---|---|
| 39 | SMTP::VERSION | This constant will be removed in PHPMailer 8.0. Use |
Option.php
| Line | Element | Reason |
|---|---|---|
| 291 | Option::ifDefined() | Use forAll() instead. |
TokenIterator.php
| Line | Element | Reason |
|---|---|---|
| 204 | TokenIterator::skipNewLineTokens() | Use skipNewLineTokensAndConsumeComments instead (when parsing a type) |
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 |
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 |
ReferenceSetArgumentTrait.php
| Line | Element | Reason |
|---|---|---|
| 25 | ReferenceSetArgumentTrait | since Symfony 6.1 |
MapDecorated.php
| Line | Element | Reason |
|---|---|---|
| 19 | MapDecorated | since Symfony 6.3, use AutowireDecorated instead |
ContainerAwareInterface.php
| Line | Element | Reason |
|---|---|---|
| 21 | ContainerAwareInterface | since Symfony 6.4, use dependency injection instead |
ContainerAwareTrait.php
| Line | Element | Reason |
|---|---|---|
| 23 | ContainerAwareTrait | since Symfony 6.4, use dependency injection instead |
ProxyHelper.php
| Line | Element | Reason |
|---|---|---|
| 21 | ProxyHelper | since Symfony 6.2, use VarExporter's ProxyHelper instead |
DebugCommand.php
| Line | Element | Reason |
|---|---|---|
| 36 | DebugCommand::$defaultName | since Symfony 6.1 |
| 41 | DebugCommand::$defaultDescription | since Symfony 6.1 |
MastermindsParser.php
| Line | Element | Reason |
|---|---|---|
| 21 | MastermindsParser | since Symfony 7.4, use |
NoPrivateNetworkHttpClient.php
| Line | Element | Reason |
|---|---|---|
| 165 | NoPrivateNetworkHttpClient::setLogger() | since Symfony 7.1, configure the logger on the wrapped HTTP client directly instead |
ScopingHttpClient.php
| Line | Element | Reason |
|---|---|---|
| 108 | ScopingHttpClient::setLogger() | since Symfony 7.1, configure the logger on the wrapped HTTP client directly instead |
TraceableHttpClient.php
| Line | Element | Reason |
|---|---|---|
| 100 | TraceableHttpClient::setLogger() | since Symfony 7.1, configure the logger on the wrapped HTTP client directly instead |
Normalizer.php
| Line | Element | Reason |
|---|---|---|
| 8 | Normalizer::NONE | since ICU 56 and removed in PHP 8 |
ConstructorArgumentTypeExtractorInterface.php
| Line | Element | Reason |
|---|---|---|
| 31 | ConstructorArgumentTypeExtractorInterface::getTypesFromConstructor() | since Symfony 7.3, use "getTypeFromConstructor" instead |
ConstructorExtractor.php
| Line | Element | Reason |
|---|---|---|
| 46 | ConstructorExtractor::getTypes() | since Symfony 7.3, use "getType" instead |
PhpDocExtractor.php
| Line | Element | Reason |
|---|---|---|
| 122 | PhpDocExtractor::getTypes() | since Symfony 7.3, use "getType" instead |
| 179 | PhpDocExtractor::getTypesFromConstructor() | since Symfony 7.3, use "getTypeFromConstructor" instead |
PhpStanExtractor.php
| Line | Element | Reason |
|---|---|---|
| 101 | PhpStanExtractor::getTypes() | since Symfony 7.3, use "getType" instead |
| 180 | PhpStanExtractor::getTypesFromConstructor() | since Symfony 7.3, use "getTypeFromConstructor" instead |
ReflectionExtractor.php
| Line | Element | Reason |
|---|---|---|
| 161 | ReflectionExtractor::getTypes() | since Symfony 7.3, use "getType" instead |
| 192 | ReflectionExtractor::getTypesFromConstructor() | since Symfony 7.3, use "getTypeFromConstructor" instead |
PropertyInfoCacheExtractor.php
| Line | Element | Reason |
|---|---|---|
| 101 | PropertyInfoCacheExtractor::getTypes() | since Symfony 7.3, use "getType" instead |
PropertyInfoExtractor.php
| Line | Element | Reason |
|---|---|---|
| 81 | PropertyInfoExtractor::getTypes() | since Symfony 7.3, use "getType" instead |
PropertyTypeExtractorInterface.php
| Line | Element | Reason |
|---|---|---|
| 33 | PropertyTypeExtractorInterface::getTypes() | since Symfony 7.3, use "getType" instead |
Type.php
| Line | Element | Reason |
|---|---|---|
| 25 | Type | since Symfony 7.3, use "Symfony\Component\TypeInfo\Type" class from "symfony/type-info" instead |
PhpDocTypeHelper.php
| Line | Element | Reason |
|---|---|---|
| 48 | PhpDocTypeHelper::getTypes() | since Symfony 7.3, use "getType" instead |
AnnotationClassLoader.php
| Line | Element | Reason |
|---|---|---|
| 22 | AnnotationClassLoader |
AnnotationDirectoryLoader.php
| Line | Element | Reason |
|---|---|---|
| 22 | AnnotationDirectoryLoader |
AnnotationFileLoader.php
| Line | Element | Reason |
|---|---|---|
| 22 | AnnotationFileLoader |
AttributeClassLoader.php
| Line | Element | Reason |
|---|---|---|
| 61 | AttributeClassLoader::$reader | in Symfony 6.4, this property will be removed in Symfony 7. |
LazyGhostTrait.php
| Line | Element | Reason |
|---|---|---|
| 27 | LazyGhostTrait | since Symfony 7.3, use native lazy objects instead |
LazyProxyTrait.php
| Line | Element | Reason |
|---|---|---|
| 28 | LazyProxyTrait | since Symfony 7.3, use native lazy objects instead |
ProxyHelper.php
| Line | Element | Reason |
|---|---|---|
| 31 | ProxyHelper::generateLazyGhost() | since Symfony 7.3, use native lazy objects instead |
AbstractTwigCallable.php
| Line | Element | Reason |
|---|---|---|
| 126 | AbstractTwigCallable::setArguments() | since Twig 3.12, use withDynamicArguments() instead |
| 156 | AbstractTwigCallable::getDeprecatingPackage() | since Twig 3.15 |
| 166 | AbstractTwigCallable::getDeprecatedVersion() | since Twig 3.15 |
| 176 | AbstractTwigCallable::getAlternative() | since Twig 3.15 |
Environment.php
| Line | Element | Reason |
|---|---|---|
| 926 | Environment::mergeGlobals() | since Twig 3.14 |
ExpressionParser.php
EscaperExtension.php
| Line | Element | Reason |
|---|---|---|
| 71 | EscaperExtension::setEnvironment() | since Twig 3.10 |
| 87 | EscaperExtension::setEscaperRuntime() | since Twig 3.10 |
| 139 | EscaperExtension::setEscaper() | since Twig 3.10 |
| 162 | EscaperExtension::getEscapers() | since Twig 3.10 |
| 174 | EscaperExtension::setSafeClasses() | since Twig 3.10 |
| 190 | EscaperExtension::addSafeClass() | since Twig 3.10 |
CallExpression.php
| Line | Element | Reason |
|---|---|---|
| 136 | CallExpression::getArguments() | since Twig 3.12, use Twig\Util\CallableArgumentsExtractor::getArguments() instead |
| 266 | CallExpression::normalizeName() | since Twig 3.12 |
NameExpression.php
| Line | Element | Reason |
|---|---|---|
| 99 | NameExpression::isSpecial() | since Twig 3.11 (to be removed in 4.0) |
| 109 | NameExpression::isSimple() | since Twig 3.11 (to be removed in 4.0) |
AbstractNodeVisitor.php
| Line | Element | Reason |
|---|---|---|
| 24 | AbstractNodeVisitor | since Twig 3.9 (to be removed in 4.0) |
OperatorPrecedenceChange.php
| Line | Element | Reason |
|---|---|---|
| 23 | OperatorPrecedenceChange | since Twig 1.20 Use Twig\ExpressionParser\PrecedenceChange instead |
Parser.php
| Line | Element | Reason |
|---|---|---|
| 365 | Parser::getExpressionParser() | since Twig 3.21 |
IntegrationTestCase.php
| Line | Element | Reason |
|---|---|---|
| 38 | IntegrationTestCase::getFixturesDir() | since Twig 3.13, use getFixturesDirectory() instead. |
NodeTestCase.php
| Line | Element | Reason |
|---|---|---|
| 102 | NodeTestCase::getVariableGetter() | since Twig 3.13, use createVariableGetter() instead. |
| 121 | NodeTestCase::getAttributeGetter() | since Twig 3.13, use createAttributeGetter() instead. |
Token.php
| Line | Element | Reason |
|---|---|---|
| 130 | Token::getType() | since Twig 3.19 |
| 36 | Token::ARROW_TYPE | since Twig 3.21, "arrow" is now an operator |
| 40 | Token::SPREAD_TYPE | since Twig 3.21, "spread" is now an operator |
Assert.php
| Line | Element | Reason |
|---|---|---|
| 365 | Assert::isTraversable() | use "isIterable" or "isInstanceOf" instead |
Mixin.php
| Line | Element | Reason |
|---|---|---|
| 859 | Mixin::nullOrIsTraversable() | use "isIterable" or "isInstanceOf" instead |
| 878 | Mixin::allIsTraversable() | use "isIterable" or "isInstanceOf" instead |
| 901 | Mixin::allNullOrIsTraversable() | use "isIterable" or "isInstanceOf" instead |