drupal-check deprecations

Created on 4 October 2023, 12 months ago
Updated 2 March 2024, 7 months ago

Problem/Motivation

Drupal-check found somethings.

Steps to reproduce

$ vendor/bin/drupal-check --drupal-root $CI_PROJECT_DIR/$_WEB_ROOT $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME
 ------ -------------------------------------------------------------------------- 
  Line   ldap_query/src/Plugin/views/query/LdapQuery.php                           
 ------ -------------------------------------------------------------------------- 
  212    Access to an undefined property                                           
         Drupal\views\ViewExecutable::$execute_time.                               
         ๐Ÿ’ก Learn more:                                                            
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
 ------ -------------------------------------------------------------------------- 
 ------ -------------------------------------------------------------------------------- 
  Line   ldap_servers/src/LdapGroupManager.php                                           
 ------ -------------------------------------------------------------------------------- 
  195    Call to an undefined method                                                     
         Symfony\Component\Ldap\Adapter\EntryManagerInterface::addAttributeValues().     
  231    Call to an undefined method                                                     
         Symfony\Component\Ldap\Adapter\EntryManagerInterface::removeAttributeValues().  
 ------ -------------------------------------------------------------------------------- 
 ------ ------------------------------------------------------------- 
  Line   ldap_user/src/Processor/DrupalUserProcessor.php              
 ------ ------------------------------------------------------------- 
  615    Call to deprecated function file_validate():                 
         in drupal:10.2.0 and is removed from drupal:11.0.0. Use the  
           'file.validator' service instead.                          
  616    Call to deprecated function file_validate():                 
         in drupal:10.2.0 and is removed from drupal:11.0.0. Use the  
           'file.validator' service instead.                          
 ------ ------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------- 
  Line   ldap_user/tests/src/Kernel/DrupalUserProcessorTest.php                
 ------ ---------------------------------------------------------------------- 
  129    Call to an undefined method                                           
         Prophecy\Prophecy\ObjectProphecy::getRoles().                         
  132    Call to an undefined method Prophecy\Prophecy\ObjectProphecy::id().   
  135    Call to an undefined method Prophecy\Prophecy\ObjectProphecy::get().  
  157    Call to an undefined method                                           
         Prophecy\Prophecy\ObjectProphecy::getRoles().                         
  158    Call to an undefined method Prophecy\Prophecy\ObjectProphecy::id().   
  160    Call to an undefined method Prophecy\Prophecy\ObjectProphecy::get().  
  165    Call to an undefined method                                           
         Prophecy\Prophecy\ObjectProphecy::getRoles().                         
  166    Call to an undefined method Prophecy\Prophecy\ObjectProphecy::id().   
  168    Call to an undefined method Prophecy\Prophecy\ObjectProphecy::get().  
 ------ ---------------------------------------------------------------------- 
 [ERROR] Found 14 errors     

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Closed: outdated

Version

4.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States bluegeek9

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024