Issues reported by drupal-check

Created on 13 December 2023, 11 months ago
Updated 29 July 2024, 4 months ago

Problem/Motivation

Steps to reproduce

$ vendor/bin/drupal-check --drupal-root $CI_PROJECT_DIR/$_WEB_ROOT $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME
  0/98 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   0%
 98/98 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
 ------ -------------------------------------------------------------------------- 
  Line   src/Form/Settings.php                                                     
 ------ -------------------------------------------------------------------------- 
  196    Access to an undefined property                                           
         Drupal\Core\Extension\Extension::$status.                                 
         💡 Learn more:                                                            
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
 ------ -------------------------------------------------------------------------- 
 ------ -------------------------------------------------------------------------- 
  Line   src/Plugin/views/field/VisitorsBrand.php                                  
 ------ -------------------------------------------------------------------------- 
  115    Access to an undefined property                                           
         Drupal\views\ResultRow::$visitors_config_device_brand.                    
         💡 Learn more:                                                            
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
 ------ -------------------------------------------------------------------------- 
 ------ -------------------------------------------------------------------------- 
  Line   src/Plugin/views/field/VisitorsOperatingSystem.php                        
 ------ -------------------------------------------------------------------------- 
  115    Access to an undefined property                                           
         Drupal\views\ResultRow::$visitors_config_os.                              
         💡 Learn more:                                                            
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
 ------ -------------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------- 
  Line   tests/src/Unit/Form/DateFilterTest.php                                
 ------ ---------------------------------------------------------------------- 
  30     Property                                                              
         Drupal\Tests\visitors\Unit\Form\DateFilterTest::$visitorsDateFilter   
         has unknown class Drupal\visitors\VisitorsDateFilterInterface as its  
         type.                                                                 
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols   
  305    Call to an undefined method                                           
         Drupal\Core\Database\Connection::expects().                           
  348    Call to an undefined method                                           
         Drupal\Core\Database\Connection::expects().                           
  394    Call to an undefined method                                           
         Drupal\Core\Database\Connection::expects().                           
  441    Call to an undefined method                                           
         Drupal\Core\Database\Connection::expects().                           
 ------ ---------------------------------------------------------------------- 
 ------ --------------------------------------------------------------------------------- 
  Line   tests/src/Unit/Form/RebuildDeviceFormTest.php                                    
 ------ --------------------------------------------------------------------------------- 
  31     Property                                                                         
         Drupal\Tests\visitors\Unit\Form\RebuildDeviceFormTest::$visitorsDeviceRebuilder  
         has unknown class Drupal\visitors\VisitorsRebuildDeviceInterface as              
         its type.                                                                        
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols              
  96     Call to an undefined method                                                      
         Symfony\Component\HttpFoundation\RequestStack::expects().                        
  122    Call to method expects() on an unknown class                                     
         Drupal\visitors\VisitorsRebuildDeviceInterface.                                  
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols              
  129    Call to an undefined method                                                      
         Symfony\Component\HttpFoundation\RequestStack::expects().                        
  144    Call to method expects() on an unknown class                                     
         Drupal\visitors\VisitorsRebuildDeviceInterface.                                  
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols              
 ------ --------------------------------------------------------------------------------- 
 ------ --------------------------------------------------------------- 
  Line   tests/src/Unit/Form/RebuildIpAddressFormTest.php               
 ------ --------------------------------------------------------------- 
  116    Call to an undefined method                                    
         Drupal\visitors\VisitorsRebuildIpAddressInterface::expects().  
  152    Call to an undefined method                                    
         Symfony\Component\HttpFoundation\RequestStack::expects().      
  176    Call to an undefined method                                    
         Drupal\visitors\VisitorsRebuildIpAddressInterface::expects().  
 ------ --------------------------------------------------------------- 
 ------ ----------------------------------------------------------- 
  Line   tests/src/Unit/Form/RebuildRouteFormTest.php               
 ------ ----------------------------------------------------------- 
  130    Call to an undefined method                                
         Drupal\visitors\VisitorsRebuildRouteInterface::expects().  
  147    Call to an undefined method                                
         Symfony\Component\HttpFoundation\RequestStack::expects().  
  189    Call to an undefined method                                
         Drupal\visitors\VisitorsRebuildRouteInterface::expects().  
 ------ ----------------------------------------------------------- 
 ------ ----------------------------------------------------------- 
  Line   tests/src/Unit/Form/RefererTest.php                        
 ------ ----------------------------------------------------------- 
  73     Call to an undefined method                                
         Drupal\Core\Language\LanguageManagerInterface::expects().  
 ------ ----------------------------------------------------------- 
 ------ ----------------------------------------------------------------------------------- 
  Line   tests/src/Unit/Form/SettingsTest.php                                               
 ------ ----------------------------------------------------------------------------------- 
  191    Call to an undefined method                                                        
         Drupal\Core\Config\ImmutableConfig::willReturn().                                  
  195    Call to an undefined method Drupal\Core\Config\Config::willReturn().               
  200    Access to an undefined property                                                    
         Drupal\Core\Extension\Extension&PHPUnit\Framework\MockObject\MockObject::$status.  
         💡 Learn more:                                                                     
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property           
  204    Access to an undefined property                                                    
         Drupal\Core\Extension\Extension&PHPUnit\Framework\MockObject\MockObject::$status.  
         💡 Learn more:                                                                     
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property           
  317    Call to an undefined method                                                        
         Drupal\Core\Config\ImmutableConfig::willReturn().                                  
  321    Call to an undefined method Drupal\Core\Config\Config::willReturn().               
  326    Access to an undefined property                                                    
         Drupal\Core\Extension\Extension&PHPUnit\Framework\MockObject\MockObject::$status.  
         💡 Learn more:                                                                     
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property           
  330    Access to an undefined property                                                    
         Drupal\Core\Extension\Extension&PHPUnit\Framework\MockObject\MockObject::$status.  
         💡 Learn more:                                                                     
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property           
  414    Call to an undefined method Drupal\Core\Config\Config::willReturn().               
 ------ ----------------------------------------------------------------------------------- 
 ------ --------------------------------------------------------------------- 
  Line   visitors_geoip/src/Commands/MaxMindCommands.php                      
 ------ --------------------------------------------------------------------- 
  134    Access to constant Replace on an unknown class                       
         Drupal\Core\File\FileExists.                                         
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols  
 ------ --------------------------------------------------------------------- 
 [ERROR] Found 30 errors     

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.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