Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Deprecated - Drupal 11.1.x - Drupal Core

Primary tabs

  • Drupal 11.1.x
Examples: "before Drupal 9", "in Drupal 8.4"
Title File name Deprecation Type Direct uses Namespaced uses Overrides Use statements
NodeTraverser::REMOVE_NODE vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php

Use NodeVisitor::REMOVE_NODE instead.

constant
NodeTraverser::STOP_TRAVERSAL vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php

Use NodeVisitor::STOP_TRAVERSAL instead.

constant
Normalizer::NONE vendor/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php

since ICU 56 and removed in PHP 8

constant 1
normalize_header_keys vendor/guzzlehttp/guzzle/src/functions.php

normalize_header_keys will be removed in guzzlehttp/guzzle:8.0. Use Utils::normalizeHeaderKeys instead.

function
NotFoundException vendor/php-http/discovery/src/NotFoundException.php

since since version 1.0, and will be removed in 2.0. Use {@link \Http\Discovery\Exception\NotFoundException} instead.

class
Param::create vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Param.php

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

function 1
PearRepository vendor/composer/composer/src/Composer/Repository/PearRepository.php

@private

class
PlatformRepository::PLATFORM_PACKAGE_REGEX vendor/composer/composer/src/Composer/Repository/PlatformRepository.php

use PlatformRepository::isPlatformPackage(string $name) instead

constant 1
PluginBase::isConfigurable core/lib/Drupal/Component/Plugin/PluginBase.php

in drupal:11.1.0 and is removed from drupal:12.0.0. Use instanceof to check if the plugin implements \Drupal\Component\Plugin\ConfigurableInterface instead.

function
PostFileDownloadEvent::getPackage vendor/composer/composer/src/Composer/Plugin/PostFileDownloadEvent.php

Use getContext instead

function
Promise::always vendor/react/promise/src/Promise.php

3.0.0 Use `finally()` instead

function
Promise::otherwise vendor/react/promise/src/Promise.php

3.0.0 Use `catch()` instead

function
PromiseInterface::always vendor/react/promise/src/PromiseInterface.php

3.0.0 Use finally() instead

function 3
PromiseInterface::otherwise vendor/react/promise/src/PromiseInterface.php

3.0.0 Use catch() instead

function 3
Property::create vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Property.php

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

function
PropertyRead::create vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyRead.php

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

function
PropertyWrite::create vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/PropertyWrite.php

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

function
Psr17FactoryDiscovery::findUrlFactory vendor/php-http/discovery/src/Psr17FactoryDiscovery.php

This will be removed in 2.0. Consider using the findUriFactory() method.

function
Psr3::severityNumber vendor/open-telemetry/api/Logs/Map/Psr3.php

Use Severity::fromPsr3

function
RandomLibAdapter vendor/ramsey/uuid/src/Generator/RandomLibAdapter.php

This class will be removed in 5.0.0. Use the default RandomBytesGenerator or implement your own generator that implements RandomGeneratorInterface.

class
RejectedPromise::always vendor/react/promise/src/Internal/RejectedPromise.php

3.0.0 Use `always()` instead

function
RejectedPromise::otherwise vendor/react/promise/src/Internal/RejectedPromise.php

3.0.0 Use `catch()` instead

function
RenderElement core/lib/Drupal/Core/Render/Element/RenderElement.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Render\Element\RenderElementBase instead.

class
RendererInterface::renderPlain core/lib/Drupal/Core/Render/RendererInterface.php

in drupal:10.3.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Render\RendererInterface::renderInIsolation() instead.

function 1
ResourceAttributes::BROWSER_USER_AGENT vendor/open-telemetry/sem-conv/ResourceAttributes.php

Use USER_AGENT_ORIGINAL

constant
ResourceAttributes::CONTAINER_IMAGE_TAG vendor/open-telemetry/sem-conv/ResourceAttributes.php

Use CONTAINER_IMAGE_TAGS

constant
ResourceAttributes::DEPLOYMENT_ENVIRONMENT vendor/open-telemetry/sem-conv/ResourceAttributes.php

Use `deployment.environment.name`

constant
ResourceAttributes::FAAS_ID vendor/open-telemetry/sem-conv/ResourceAttributes.php

Use CLOUD_RESOURCE_ID

constant
ResourceAttributes::OTEL_LIBRARY_NAME vendor/open-telemetry/sem-conv/ResourceAttributes.php

Use `otel.scope.name`

constant
ResourceAttributes::OTEL_LIBRARY_VERSION vendor/open-telemetry/sem-conv/ResourceAttributes.php

Use `otel.scope.version`

constant
ResourceAttributes::TELEMETRY_AUTO_VERSION vendor/open-telemetry/sem-conv/ResourceAttributes.php

Use TELEMETRY_DISTRO_VERSION

constant
ReturnTypeNode::isVoid vendor/phpspec/prophecy/src/Prophecy/Doubler/Generator/Node/ReturnTypeNode.php

use hasReturnStatement

function
Return_::create vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Return_.php

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

function
SelectorsHandler::xpathLiteral vendor/behat/mink/src/Selector/SelectorsHandler.php

since Mink 1.7. Use \Behat\Mink\Selector\Xpath\Escaper::escapeLiteral when building Xpath or pass the unescaped value when using the named selector.

function
ServiceSubscriberTrait vendor/symfony/service-contracts/ServiceSubscriberTrait.php

since symfony/contracts v3.5, use ServiceMethodsSubscriberTrait instead

trait
Session::getSelectorsHandler vendor/behat/mink/src/Session.php

since 1.11

function
Shadow vendor/lullabot/php-webdriver/lib/WebDriver/Shadow.php

by W3C WebDriver

class
SplDoublyLinkedList vendor/myclabs/deep-copy/src/DeepCopy/TypeFilter/Spl/SplDoublyLinkedList.php

Use {

class
StaticMethod vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/StaticMethod.php

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

interface
StreamFactoryDiscovery vendor/php-http/discovery/src/StreamFactoryDiscovery.php

This will be removed in 2.0. Consider using Psr17FactoryDiscovery.

class
StringInputStream vendor/masterminds/html5/src/HTML5/Parser/StringInputStream.php

since 2.4, to remove in 3.0. Use a string in the scanner instead.

class 1
TaggedIterator vendor/symfony/dependency-injection/Attribute/TaggedIterator.php

since Symfony 7.1, use {

class
TaggedLocator vendor/symfony/dependency-injection/Attribute/TaggedLocator.php

since Symfony 7.1, use {

class
Template::create vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Template.php

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

function
TestCase::createTestProxy vendor/phpunit/phpunit/src/Framework/TestCase.php

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

function
TestCase::getMockForAbstractClass vendor/phpunit/phpunit/src/Framework/TestCase.php

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

function
TestCase::getMockForTrait vendor/phpunit/phpunit/src/Framework/TestCase.php

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

function
TestCase::getMockFromWsdl vendor/phpunit/phpunit/src/Framework/TestCase.php

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

function
TestCase::getObjectForTrait vendor/phpunit/phpunit/src/Framework/TestCase.php

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

function
TestCase::iniSet vendor/phpunit/phpunit/src/Framework/TestCase.php

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

function

Pagination

  • First page
  • Previous page
  • …
  • Page 2
  • Page 3
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Next page
  • Last page
RSS feed
Powered by Drupal