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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thalles created an issue. See original summary.

thalles’s picture

  • hass committed 35e4338 on 8.x-1.x authored by thalles
    Issue #3074385 by thalles: Replace deprecated function format_string()...
hass’s picture

Status: Needs review » Fixed

Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

JeroenT’s picture

This issue broke the LinkCheckerLinkExtractionTest.

Will try to fix in #3061405: Fix remaining test failures