Problem/Motivation

Running drupal-check on the module getting the list of errors:

 ------ ------------------------------------------------------------------------- 
  Line   high_contrast.install                                                    
 ------ ------------------------------------------------------------------------- 
  30     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   high_contrast.module                                                                   
 ------ --------------------------------------------------------------------------------------- 
  38     Call to deprecated constant FILE_EXISTS_REPLACE: Deprecated in drupal:8.7.0 and is     
         removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::EXISTS_REPLACE.  
  38     Call to deprecated function file_unmanaged_save_data():                                
         in drupal:8.7.0 and is removed from drupal:9.0.0.                                      
         Use \Drupal\Core\File\FileSystemInterface::saveData().                                 
  274    Call to deprecated function file_unmanaged_copy():                                     
         in drupal:8.7.0 and is removed from drupal:9.0.0.                                      
         Use \Drupal\Core\File\FileSystemInterface::copy().                                     
  290    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.                   
  489    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().                                          
  497    Call to deprecated function file_uri_scheme():                                         
         in drupal:8.8.0 and is removed from drupal:9.0.0. Use                                  
         Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getScheme()                   
         instead.                                                                               
  529    Call to deprecated function drupal_get_destination():                                  
         in drupal:8.0.0 and is removed from drupal:9.0.0.                                      
         Use the redirect.destination service.                                                  
 ------ --------------------------------------------------------------------------------------- 

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

andralex created an issue. See original summary.

andralex’s picture

Status: Active » Closed (cannot reproduce)

The issue reported by mistake. It was run drupal-check on 7.x branch instead.