Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Change records: https://www.drupal.org/node/2302363
------ ---------------------------------------------------------------------------
Line src/Commands/LinkCheckerCommands.php
------ ---------------------------------------------------------------------------
Class Drush\Commands\DrushCommands not found and could not be autoloaded.
------ ---------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line src/Tests/LinkCheckerInterfaceTest.php
------ -------------------------------------------------------------------------
144 Call to deprecated function format_string():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
147 Call to deprecated function format_string():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
194 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
208 Call to deprecated function format_string():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
211 Call to deprecated function format_string():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
240 Call to deprecated function db_update():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call update() on it. For example,
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line src/Tests/LinkCheckerLinkExtractionTest.php
------ -------------------------------------------------------------------------
327 Call to deprecated function format_string():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
330 Call to deprecated function format_string():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
339 Call to deprecated function format_string():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
378 Call to deprecated function db_query():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call query() on it. For example,
392 Call to deprecated function format_string():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
395 Call to deprecated function format_string():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
402 Call to deprecated function format_string():
in Drupal 8.0.0, will be removed before Drupal 9.0.0.
Use \Drupal\Component\Render\FormattableMarkup.
------ -------------------------------------------------------------------------
Proposed resolution
Replace deprecated function format_string() by new FormattableMarkup
Comments
Comment #2
thallesFollow the patch!
Comment #4
hass CreditAttribution: hass commentedThanks.
Comment #6
JeroenTThis issue broke the LinkCheckerLinkExtractionTest.
Will try to fix in #3061405: Fix remaining test failures