Drupal 11 deprecation errors

Filter errors
All occurences Sort ascending Affected projects Occurs in a top X project by usage Category Message
8123 5872 50 Info.yml or composer.json Value of core_version_requirement is not compatible with the next major version of Drupal core. See https://drupal.org/node/3070687.
996 996 50 Info.yml or composer.json The drupal/core requirement is not compatible with the next major version of Drupal. Either remove it or update it to be compatible. See https://www.drupal.org/docs/develop/using-composer/add-a-composerjson-file#core-compatibility.
686 249 50 Drupal API, rector covered Call to deprecated function watchdog_exception(). Deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use Use Drupal​\​Core​\​Utility​\​Error::logException() instead.
521 247 50 Drupal API, not rector covered Relying on entity queries to check access by default is deprecated in drupal:9.2.0 and an error will be thrown from drupal:10.0.0. Call ​\​Drupal​\​Core​\​Entity​\​Query​\​QueryInterface::accessCheck() with TRUE or FALSE to specify whether access should be checked.
343 98 50 Drupal API, not rector covered Call to deprecated method loadRevision() of interface Drupal​\​Core​\​Entity​\​EntityStorageInterface. Deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use Drupal​\​Core​\​Entity​\​RevisionableStorageInterface::loadRevision instead.
142 4 10000 PHPUnit API Call to deprecated method at() of class PHPUnit​\​Framework​\​TestCase: https://github.com/sebastianbergmann/phpunit/issues/4297
138 26 200 PHPUnit API Call to deprecated method setMethods() of class PHPUnit​\​Framework​\​MockObject​\​MockBuilder: https://github.com/sebastianbergmann/phpunit/pull/3687
133 101 200 Drupal API, not rector covered Call to deprecated function user_role_names(). Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use Drupal​\​user​\​Entity​\​Role::loadMultiple() and, if necessary, an inline implementation instead.
114 101 50 Drupal API, rector covered Drupal​\​Tests​\​BrowserTestBase::$defaultTheme is required in drupal:9.0.0 when using an install profile that does not set a default theme. See https://www.drupal.org/node/3083055, which includes recommendations on which theme to use.
110 64 50 Drupal API, rector covered Call to deprecated function format_size(). Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use Drupal​\​Core​\​StringTranslation​\​ByteSizeMarkup::create($size, $langcode) instead.
107 64 50 Drupal API, not rector covered Call to deprecated function user_roles(). Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use Drupal​\​user​\​Entity​\​Role::loadMultiple() and, if necessary, an inline implementation instead.
106 52 50 Other problem Usage of deprecated trait Drupal​\​Tests​\​field​\​Traits​\​EntityReferenceTestTrait in class [redacted]:11.0.0. Use Drupal​\​Tests​\​field​\​Traits​\​EntityReferenceFieldCreationTrait instead.
77 26 1000 Drupal API, rector covered Call to deprecated function module_load_include(). Deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. Use Drupal::moduleHandler()->loadInclude($module, $type, $name = NULL). Note that including code from uninstalled extensions is no longer supported.
62 46 50 Drupal API, not rector covered Call to deprecated method deleteRevision() of interface Drupal​\​Core​\​Entity​\​EntityStorageInterface. Deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use Drupal​\​Core​\​Entity​\​RevisionableStorageInterface::deleteRevision instead.
62 28 100 Frontend API The #drupal-off-canvas selector is deprecated in drupal:9.5.0 and is removed from drupal:10.0.0. See https://www.drupal.org/node/3305664.
47 38 200 Symfony API Usage of deprecated trait Symfony​\​Component​\​DependencyInjection​\​ContainerAwareTrait in class [redacted]: since Symfony 6.4, use dependency injection instead
46 15 100 PHPUnit API Call to deprecated method withConsecutive() of class PHPUnit​\​Framework​\​MockObject​\​Builder​\​InvocationMocker.
40 16 10000 Guzzle API Call to deprecated function GuzzleHttp​\​json_decode(): json_decode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonDecode instead.
36 22 500 Drupal API, rector covered Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:11.0.0. Use Drupal::time()->getRequestTime();
34 5 1000 Drupal API, rector covered Call to deprecated method getResource() of class Drupal​\​system​\​Plugin​\​ImageToolkit​\​GDToolkit. Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use Drupal​\​system​\​Plugin​\​ImageToolkit​\​GDToolkit::getImage() instead.
30 28 200 Symfony API Class [redacted] implements deprecated interface Symfony​\​Component​\​DependencyInjection​\​ContainerAwareInterface: since Symfony 6.4, use dependency injection instead
29 24 100 Drupal API, not rector covered Call to deprecated function system_retrieve_file(). Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement.
27 5 10000 Other problem Add core_version_requirement to designate which Drupal versions is the extension compatible with. See https://drupal.org/node/3070687.
25 14 500 Symfony API Fetching deprecated class constant MASTER_REQUEST of interface Symfony​\​Component​\​HttpKernel​\​HttpKernelInterface: since symfony/http-kernel 5.3, use MAIN_REQUEST instead. To ease the migration, this constant won't be removed until Symfony 7.0.
24 17 100 Drupal API, not rector covered Call to deprecated function file_icon_class(). Deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use Drupal​\​file​\​IconMimeTypes::getIconClass() instead.
23 18 50 Drupal API, not rector covered Call to deprecated function _drupal_flush_css_js(). Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use Use Drupal​\​Core​\​Asset​\​AssetQueryStringInterface::reset() instead.
23 6 10000 Guzzle API Call to deprecated function GuzzleHttp​\​json_encode(): json_encode will be removed in guzzlehttp/guzzle:8.0. Use Utils::jsonEncode instead.
21 8 10000 Other problem Call to deprecated method toMinorUnits() of class Drupal​\​commerce_payment​\​Plugin​\​Commerce​\​PaymentGateway​\​PaymentGatewayBase.
20 15 200 Drupal API, rector covered Call to deprecated function system_time_zones(). Deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. This function is no longer used in Drupal core. Use Drupal​\​Core​\​Datetime​\​TimeZoneFormHelper::getOptionsList() or ​\​DateTimeZone::listIdentifiers() instead.
18 2 1000 Other problem Call to deprecated method setCellValueByColumnAndRow() of class PhpOffice​\​PhpSpreadsheet​\​Worksheet​\​Worksheet: 1.23.0 Use the setCellValue() method with a cell address such as 'C5' instead;, or passing in an array of [$columnIndex, $row] (e.g. [3, 5]), or a CellAddress object.


Results are from dataset #134788 from 2024-04-01T19:47. Report is ran by the Drupal Association regularly.