drupal-check results

  Line   captcha.inc                                                                                                                                    
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------- 
  87     Call to deprecated function db_insert():                                                                                                       
         in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get                                                                                 
         a database connection injected into your service from the container and                                                                        
         call insert() on it. For example,                                                                                                              
  92     Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::time()->getRequestTime();  
  111    Call to deprecated function db_update():                                                                                                       
         in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get                                                                                 
         a database connection injected into your service from the container and                                                                        
         call update() on it. For example,                                                                                                              
  114    Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::time()->getRequestTime();  
  137    Call to deprecated function db_query():                                                                                                        
         in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,                                                                                     
         get a database connection injected into your service from the container                                                                        
         and call query() on it. For example,                                                                                                           
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   captcha.module                                                                                                                                 
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------- 
  55     Call to deprecated method url() of class Drupal:                                                                                               
         in drupal:8.0.0 and is removed from drupal:9.0.0.                                                                                              
         Instead create a \Drupal\Core\Url object directly, for example using                                                                           
         Url::fromRoute().                                                                                                                              
  56     Call to deprecated method url() of class Drupal:                                                                                               
         in drupal:8.0.0 and is removed from drupal:9.0.0.                                                                                              
         Instead create a \Drupal\Core\Url object directly, for example using                                                                           
         Url::fromRoute().                                                                                                                              
  64     Call to deprecated method url() of class Drupal:                                                                                               
         in drupal:8.0.0 and is removed from drupal:9.0.0.                                                                                              
         Instead create a \Drupal\Core\Url object directly, for example using                                                                           
         Url::fromRoute().                                                                                                                              
  67     Call to deprecated method url() of class Drupal:                                                                                               
         in drupal:8.0.0 and is removed from drupal:9.0.0.                                                                                              
         Instead create a \Drupal\Core\Url object directly, for example using                                                                           
         Url::fromRoute().                                                                                                                              
  108    Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::time()->getRequestTime();  
  126    Call to deprecated function drupal_render_children():                                                                                          
         in drupal:8.0.0 and is removed from drupal:9.0.0. Avoid early                                                                                  
         rendering when possible or loop through the elements and render them as                                                                        
         they are available.                                                                                                                            
  204    Call to deprecated method url() of class Drupal\Core\Config\Entity\ConfigEntityBase:                                                           
         in drupal:8.0.0 and is removed from drupal:9.0.0.                                                                                              
         Please use toUrl() instead.                                                                                                                    
  267    Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode:                                                              
         in drupal:8.6.0 and is removed from drupal:9.0.0. Use                                                                                          
         mb_strtolower() instead.                                                                                                                       
  267    Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode:                                                              
         in drupal:8.6.0 and is removed from drupal:9.0.0. Use                                                                                          
         mb_strtolower() instead.                                                                                                                       
  297    Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode:                                                              
         in drupal:8.6.0 and is removed from drupal:9.0.0. Use                                                                                          
         mb_strtolower() instead.                                                                                                                       
  297    Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode:                                                              
         in drupal:8.6.0 and is removed from drupal:9.0.0. Use                                                                                          
         mb_strtolower() instead.                                                                                                                       
  359    Call to deprecated function db_query():                                                                                                        
         in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,                                                                                     
         get a database connection injected into your service from the container                                                                        
         and call query() on it. For example,                                                                                                           
  364    Call to deprecated function drupal_set_message():                                                                                              
         in drupal:8.5.0 and is removed from drupal:9.0.0.                                                                                              
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.                                                                           
  369    Call to deprecated function db_update():                                                                                                       
         in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get                                                                                 
         a database connection injected into your service from the container and                                                                        
         call update() on it. For example,                                                                                                              
  403    Call to deprecated function db_query():                                                                                                        
         in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,                                                                                     
         get a database connection injected into your service from the container                                                                        
         and call query() on it. For example,                                                                                                           
  434    Call to deprecated function db_update():                                                                                                       
         in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get                                                                                 
         a database connection injected into your service from the container and                                                                        
         call update() on it. For example,                                                                                                              
  442    Call to deprecated function db_update():                                                                                                       
         in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get                                                                                 
         a database connection injected into your service from the container and                                                                        
         call update() on it. For example,                                                                                                              
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   image_captcha/image_captcha.module                                                                                                             
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------- 
  240    Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::time()->getRequestTime();  
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------- 
  Line   image_captcha/src/Form/ImageCaptchaSettingsForm.php                   
 ------ ---------------------------------------------------------------------- 
  75     Call to deprecated function drupal_set_message():                     
         in drupal:8.5.0 and is removed from drupal:9.0.0.                     
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.  
  443    Call to deprecated function file_scan_directory():                    
         in drupal:8.8.0 and is removed from drupal:9.0.0.                     
         Use \Drupal\Core\File\FileSystemInterface::scanDirectory() instead.   
 ------ ---------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------- 
  Line   image_captcha/src/Response/CaptchaImageResponse.php                      
 ------ ------------------------------------------------------------------------- 
  54     Call to deprecated function db_query():                                  
         in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,               
         get a database connection injected into your service from the container  
         and call query() on it. For example,                                     
  377    Call to deprecated function drupal_realpath():                           
         in drupal:8.0.0 and is removed from drupal:9.0.0.                        
         Use \Drupal\Core\File\FileSystem::realpath().                            
  385    Call to deprecated function drupal_realpath():                           
         in drupal:8.0.0 and is removed from drupal:9.0.0.                        
         Use \Drupal\Core\File\FileSystem::realpath().                            
  441    Call to deprecated function drupal_realpath():                           
         in drupal:8.0.0 and is removed from drupal:9.0.0.                        
         Use \Drupal\Core\File\FileSystem::realpath().                            
 ------ ------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------- 
  Line   src/Element/Captcha.php                                                  
 ------ ------------------------------------------------------------------------- 
  77     Call to deprecated function db_update():                                 
         in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get           
         a database connection injected into your service from the container and  
         call update() on it. For example,                                        
  99     Call to deprecated function db_query():                                  
         in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,               
         get a database connection injected into your service from the container  
         and call query() on it. For example,                                     
 ------ ------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------- 
  Line   src/Form/CaptchaPointDeleteForm.php                                   
 ------ ---------------------------------------------------------------------- 
  40     Call to deprecated function drupal_set_message():                     
         in drupal:8.5.0 and is removed from drupal:9.0.0.                     
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.  
 ------ ---------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------- 
  Line   src/Form/CaptchaPointDisableForm.php                                  
 ------ ---------------------------------------------------------------------- 
  48     Call to deprecated function drupal_set_message():                     
         in drupal:8.5.0 and is removed from drupal:9.0.0.                     
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.  
 ------ ---------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------- 
  Line   src/Form/CaptchaPointEnableForm.php                                   
 ------ ---------------------------------------------------------------------- 
  48     Call to deprecated function drupal_set_message():                     
         in drupal:8.5.0 and is removed from drupal:9.0.0.                     
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.  
 ------ ---------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------- 
  Line   src/Form/CaptchaPointForm.php                                         
 ------ ---------------------------------------------------------------------- 
  70     Call to deprecated function drupal_set_message():                     
         in drupal:8.5.0 and is removed from drupal:9.0.0.                     
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.  
  75     Call to deprecated function drupal_set_message():                     
         in drupal:8.5.0 and is removed from drupal:9.0.0.                     
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.  
 ------ ---------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------- 
  Line   src/Form/CaptchaSettingsForm.php                                      
 ------ ---------------------------------------------------------------------- 
  217    Call to deprecated function drupal_set_message():                     
         in drupal:8.5.0 and is removed from drupal:9.0.0.                     
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.  
  232    Call to deprecated function drupal_set_message():                     
         in drupal:8.5.0 and is removed from drupal:9.0.0.                     
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.  
 ------ ---------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   src/Tests/CaptchaBaseWebTestCase.php                                                                                                                                        
 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  28     Class Drupal\captcha\Tests\CaptchaBaseWebTestCase extends deprecated class Drupal\simpletest\WebTestBase:                                                                   
         in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,                                                                                                                  
         use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.                                                                                                 
  87     Call to method setUp() of deprecated class Drupal\simpletest\WebTestBase:                                                                                                   
         in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,                                                                                                                  
         use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.                                                                                                 
  273    Call to deprecated constant DRUPAL_ANONYMOUS_RID: Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Core\Session\AccountInterface::ANONYMOUS_ROLE or  
         \Drupal\user\RoleInterface::ANONYMOUS_ID instead.                                                                                                                           
 ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ ----------------------------------------------------------------------------------------------------------------------------------------------- 
  Line   src/Tests/CaptchaCronTestCase.php                                                                                                              
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------- 
  13     Class Drupal\captcha\Tests\CaptchaCronTestCase extends deprecated class Drupal\simpletest\WebTestBase:                                         
         in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,                                                                                     
         use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.                                                                    
  33     Call to method setUp() of deprecated class Drupal\simpletest\WebTestBase:                                                                      
         in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,                                                                                     
         use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.                                                                    
  36     Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::time()->getRequestTime();  
  39     Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::time()->getRequestTime();  
 ------ ----------------------------------------------------------------------------------------------------------------------------------------------- 

 ------ --------------------------------------------------------------------------- 
  Line   src/Tests/CaptchaSessionReuseAttackTestCase.php                            
 ------ --------------------------------------------------------------------------- 
  138    Call to deprecated method getUsername() of class Drupal\user\Entity\User:  
         in drupal:8.0.0 and is removed from drupal:9.0.0.                          
         Use \Drupal\Core\Session\AccountInterface::getAccountName() or             
         \Drupal\user\UserInterface::getDisplayName() instead.                      
  147    Call to deprecated method getUsername() of class Drupal\user\Entity\User:  
         in drupal:8.0.0 and is removed from drupal:9.0.0.                          
         Use \Drupal\Core\Session\AccountInterface::getAccountName() or             
         \Drupal\user\UserInterface::getDisplayName() instead.                      
 ------ --------------------------------------------------------------------------- 

 ------ -------------------------------------------------------------------------- 
  Line   src/Tests/CaptchaTestCase.php                                             
 ------ -------------------------------------------------------------------------- 
  221    Call to deprecated method entityManager() of class Drupal:                
         in drupal:8.0.0 and is removed from drupal:9.0.0.                         
         Use \Drupal::entityTypeManager() instead in most cases. If the needed     
         method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the  
         deprecated \Drupal\Core\Entity\EntityManager to find the                  
         correct interface or service.                                             
  240    Call to deprecated function entity_get_form_display():                    
         in drupal:8.8.0 and is removed from drupal:9.0.0. Use                     
         EntityDisplayRepositoryInterface::getFormDisplay() instead.               


                                                                                                                        
 [ERROR] Found 49 errors                                  
                

Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet

Comments

drupalfox created an issue. See original summary.

drupalfox’s picture

Issue summary: View changes
drupalfox’s picture

Issue summary: View changes
lestat’s picture

Assigned: Unassigned » lestat
lestat’s picture

Assigned: lestat » Unassigned
Status: Active » Closed (duplicate)