devel 4.x-dev Drupal 10 deprecation details

Name and release Project type Usage count Top X project by usage Maintainers
devel 4.x-dev Module 88836 50 catch, drupalspoons, jonathan1055, juampynr, lussoluca, moshe weitzman, pcambra, salvis, willzyx
Status Next step Instructions
Fix deprecation errors found Run Rector to fix some errors Some of the errors found are covered by drupal-rector automation (thanks to Palantir.net funding), which should be used to speed up resolving them. Get the automated fix committed first and resolve the manual problems afterwards.
Filter errors
Occurrence in project Sort ascending All occurrences Affected projects Category Error
30 4375 374 Drupal API, rector covered Call to deprecated method drupalPostForm() of class Drupal​\​Tests​\​BrowserTestBase. Deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use $this->submitForm() instead.
9 87 43 Twig API Instantiation of deprecated class Twig_SimpleFunction: since Twig 2.7, use "Twig​\​TwigFunction" instead
7 64 4 Drupal API, not rector covered Call to deprecated method assertFieldsByValue() of class Drupal​\​Tests​\​BrowserTestBase. Deprecated in drupal:8.3.0 and is removed from drupal:10.0.0. Use iteration over the fields yourself instead and directly check the values in the test.
4 1271 974 Info.yml or composer.json Value of core_version_requirement: ^8.8 || ^9 is not compatible with the next major version of Drupal core. See https://drupal.org/node/3070687.
3 3600 191 Drupal API, rector covered Call to deprecated method assertText() of class Drupal​\​Tests​\​BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use - $this->assertSession()->responseContains() for non-HTML responses, like XML or Json. - $this->assertSession()->pageTextContains() for HTML responses. Unlike the deprecated assertText(), the passed text should be HTML decoded, exactly as a human sees it in the browser.
2 1983 873 Drupal API, rector covered Call to deprecated function drupal_get_path(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use Drupal​\​Core​\​Extension​\​ExtensionPathResolver::getPath() instead.
2 245 45 Other problem Call to deprecated function drush_log().
2 2 1 Drupal API, not rector covered Call to deprecated method findConfigEntityDependents() of class Drupal​\​Core​\​Config​\​ConfigManagerInterface. Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Instead you should use ConfigManagerInterface::findConfigEntityDependencies().
1 22 9 Drupal API, not rector covered Call to deprecated function drupal_get_installed_schema_version(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use Drupal​\​Core​\​Update​\​UpdateHookRegistry::getInstalledVersion() or ​\​Drupal​\​Core​\​Update​\​UpdateHookRegistry::getAllInstalledVersions() instead.
1 31 22 Drupal API, not rector covered Call to deprecated function menu_ui_get_menus(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use Drupal​\​system​\​Entity​\​Menu::loadMultiple() instead.
1 34 14 Drupal API, rector covered Call to deprecated method assert() of class Drupal​\​Tests​\​BrowserTestBase. Deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertTrue() instead.
1 1 1 Symfony API Parameter $event of method Drupal​\​devel​\​EventSubscriber​\​ErrorHandlerSubscriber::registerErrorHandler() has typehint with deprecated class Symfony​\​Component​\​EventDispatcher​\​Event: since Symfony 4.3, use "Symfony​\​Contracts​\​EventDispatcher​\​Event" instead
1 1 1 Symfony API Parameter $event of method Drupal​\​devel​\​EventSubscriber​\​ThemeInfoRebuildSubscriber::rebuildThemeInfo() has typehint with deprecated class Symfony​\​Component​\​HttpKernel​\​Event​\​GetResponseEvent: since Symfony 4.3, use RequestEvent instead
1 1 1 Other problem Call to method export() of deprecated class Doctrine​\​Common​\​Util​\​Debug: The Debug class is deprecated, please use symfony/var-dumper instead.
1 34 19 Drupal API, not rector covered Call to deprecated method mimeHeaderEncode() of class Drupal​\​Component​\​Utility​\​Unicode. Deprecated in drupal:9.2.0 and is removed from drupal:10.0.0. Use ​\​Symfony​\​Component​\​Mime​\​Header​\​UnstructuredHeader instead.
1 87 70 Twig API Class [redacted] extends deprecated class Twig_Extension: since Twig 2.7, use "Twig​\​Extension​\​AbstractExtension" instead
1 1 1 Twig API Parameter $env of method Drupal​\​devel​\​Twig​\​Extension​\​Debug::dump() has typehint with deprecated class Twig_Environment: since Twig 2.7, use "Twig​\​Environment" instead
1 1 1 Twig API Parameter $env of method Drupal​\​devel​\​Twig​\​Extension​\​Debug::doDump() has typehint with deprecated class Twig_Environment: since Twig 2.7, use "Twig​\​Environment" instead
1 1 1 Twig API Parameter $env of method Drupal​\​devel​\​Twig​\​Extension​\​Debug::kint() has typehint with deprecated class Twig_Environment: since Twig 2.7, use "Twig​\​Environment" instead
1 1 1 Twig API Parameter $env of method Drupal​\​devel​\​Twig​\​Extension​\​Debug::message() has typehint with deprecated class Twig_Environment: since Twig 2.7, use "Twig​\​Environment" instead
1 1 1 Twig API Parameter $env of method Drupal​\​devel​\​Twig​\​Extension​\​Debug::breakpoint() has typehint with deprecated class Twig_Environment: since Twig 2.7, use "Twig​\​Environment" instead
1 1 1 Twig API Parameter $profile of method Drupal​\​webprofiler​\​DataCollector​\​ThemeDataCollector::__construct() has typehint with deprecated class Twig_Profiler_Profile: since Twig 2.7, use "Twig​\​Profiler​\​Profile" instead
1 1 1 Twig API Return type of method Drupal​\​webprofiler​\​DataCollector​\​ThemeDataCollector::getHtmlCallGraph() has typehint with deprecated class Twig_Markup: since Twig 2.7, use "Twig​\​Markup" instead
1 1 1 Twig API Instantiation of deprecated class Twig_Markup: since Twig 2.7, use "Twig​\​Markup" instead
1 1 1 Twig API Parameter $profile of method Drupal​\​webprofiler​\​DataCollector​\​ThemeDataCollector::computeData() has typehint with deprecated class Twig_Profiler_Profile: since Twig 2.7, use "Twig​\​Profiler​\​Profile" instead
1 18 6 Symfony API Instantiation of deprecated class Symfony​\​Component​\​EventDispatcher​\​Event: since Symfony 4.3, use "Symfony​\​Contracts​\​EventDispatcher​\​Event" instead
1 1 1 Symfony API Parameter $event of method Drupal​\​webprofiler​\​EventDispatcher​\​TraceableEventDispatcher::preDispatch() has typehint with deprecated class Symfony​\​Component​\​EventDispatcher​\​Event: since Symfony 4.3, use "Symfony​\​Contracts​\​EventDispatcher​\​Event" instead
1 1 1 Symfony API Parameter $event of method Drupal​\​webprofiler​\​EventDispatcher​\​TraceableEventDispatcher::postDispatch() has typehint with deprecated class Symfony​\​Component​\​EventDispatcher​\​Event: since Symfony 4.3, use "Symfony​\​Contracts​\​EventDispatcher​\​Event" instead
1 1 1 Symfony API Parameter $event of method Drupal​\​webprofiler​\​EventSubscriber​\​ProfilerSubscriber::onKernelException() has typehint with deprecated class Symfony​\​Component​\​HttpKernel​\​Event​\​GetResponseForExceptionEvent: since Symfony 4.3, use ExceptionEvent instead
1 34 24 Symfony API Call to deprecated method getException() of class Symfony​\​Component​\​HttpKernel​\​Event​\​GetResponseForExceptionEvent: since Symfony 4.4, use getThrowable instead
1 1 1 Symfony API Parameter $event of method Drupal​\​webprofiler​\​EventSubscriber​\​ProfilerSubscriber::onKernelResponse() has typehint with deprecated class Symfony​\​Component​\​HttpKernel​\​Event​\​FilterResponseEvent: since Symfony 4.3, use ResponseEvent instead
1 1 1 Symfony API Parameter $event of method Drupal​\​webprofiler​\​EventSubscriber​\​WebprofilerEventSubscriber::onKernelResponse() has typehint with deprecated class Symfony​\​Component​\​HttpKernel​\​Event​\​FilterResponseEvent: since Symfony 4.3, use ResponseEvent instead
1 1 1 Guzzle API Call to deprecated function GuzzleHttp​\​Promise​\​rejection_for(): rejection_for will be removed in guzzlehttp/promises:2.0. Use Create::rejectionFor instead.
1 1 1 Twig API Parameter $twig of method Drupal​\​webprofiler​\​Profiler​\​TemplateManager::__construct() has typehint with deprecated class Twig_Environment: since Twig 2.7, use "Twig​\​Environment" instead
1 1 1 Twig API Parameter $twigLoader of method Drupal​\​webprofiler​\​Profiler​\​TemplateManager::__construct() has typehint with deprecated class Twig_Loader_Chain: since Twig 2.7, use "Twig​\​Loader​\​ChainLoader" instead
1 1 1 Twig API Class [redacted] extends deprecated class Twig_Profiler_Dumper_Text: since Twig 2.7, use "Twig​\​Profiler​\​Dumper​\​TextDumper" instead
1 1 1 Twig API Parameter $profile of method Drupal​\​webprofiler​\​Twig​\​Dumper​\​HtmlDumper::dump() has typehint with deprecated class Twig_Profiler_Profile: since Twig 2.7, use "Twig​\​Profiler​\​Profile" instead
1 1 1 Twig API Call to method dump() of deprecated class Twig​\​Profiler​\​Dumper​\​BaseDumper: since Twig 2.7, use "Twig​\​Profiler​\​Dumper​\​TextDumper" instead
1 1 1 Twig API Parameter $profile of method Drupal​\​webprofiler​\​Twig​\​Dumper​\​HtmlDumper::formatTemplate() has typehint with deprecated class Twig_Profiler_Profile: since Twig 2.7, use "Twig​\​Profiler​\​Profile" instead
1 1 1 Twig API Parameter $profile of method Drupal​\​webprofiler​\​Twig​\​Dumper​\​HtmlDumper::formatNonTemplate() has typehint with deprecated class Twig_Profiler_Profile: since Twig 2.7, use "Twig​\​Profiler​\​Profile" instead
1 1 1 Twig API Parameter $profile of method Drupal​\​webprofiler​\​Twig​\​Dumper​\​HtmlDumper::formatTime() has typehint with deprecated class Twig_Profiler_Profile: since Twig 2.7, use "Twig​\​Profiler​\​Profile" instead
1 1 1 Twig API Class [redacted] extends deprecated class Twig_Extension_Profiler: since Twig 2.7, use "Twig​\​Extension​\​ProfilerExtension" instead
1 1 1 Twig API Parameter $profile of method Drupal​\​webprofiler​\​Twig​\​Extension​\​ProfilerExtension::__construct() has typehint with deprecated class Twig_Profiler_Profile: since Twig 2.7, use "Twig​\​Profiler​\​Profile" instead
1 1 1 Twig API Call to method __construct() of deprecated class Twig​\​Extension​\​ProfilerExtension: since Twig 2.7, use "Twig​\​Extension​\​ProfilerExtension" instead
1 1 1 Twig API Parameter $profile of method Drupal​\​webprofiler​\​Twig​\​Extension​\​ProfilerExtension::enter() has typehint with deprecated class Twig_Profiler_Profile: since Twig 2.7, use "Twig​\​Profiler​\​Profile" instead
1 1 1 Twig API Call to method enter() of deprecated class Twig​\​Extension​\​ProfilerExtension: since Twig 2.7, use "Twig​\​Extension​\​ProfilerExtension" instead
1 1 1 Twig API Parameter $profile of method Drupal​\​webprofiler​\​Twig​\​Extension​\​ProfilerExtension::leave() has typehint with deprecated class Twig_Profiler_Profile: since Twig 2.7, use "Twig​\​Profiler​\​Profile" instead
1 1 1 Twig API Call to method leave() of deprecated class Twig​\​Extension​\​ProfilerExtension: since Twig 2.7, use "Twig​\​Extension​\​ProfilerExtension" instead
1 1 1 Twig API The spaceless tag in "modules/contrib/devel/webprofiler/templates/Collector/devel.html.twig" at line 10 is deprecated since Twig 2.7, use the "spaceless" filter with the "apply" tag instead. See https://drupal.org/node/3071078.
1 1 1 Twig API The spaceless tag in "modules/contrib/devel/webprofiler/templates/Collector/drupal.html.twig" at line 12 is deprecated since Twig 2.7, use the "spaceless" filter with the "apply" tag instead. See https://drupal.org/node/3071078.
1 1 1 Twig API The spaceless tag in "modules/contrib/devel/webprofiler/templates/Collector/forms.html.twig" at line 10 is deprecated since Twig 2.7, use the "spaceless" filter with the "apply" tag instead. See https://drupal.org/node/3071078.
1 1 1 Twig API The spaceless tag in "modules/contrib/devel/webprofiler/templates/Collector/php_config.html.twig" at line 11 is deprecated since Twig 2.7, use the "spaceless" filter with the "apply" tag instead. See https://drupal.org/node/3071078.


Results are from dataset #136 from 2022-06-26T14:32. Report is ran by the Drupal Association regularly.