Fix the issues reported by PHPStan

Created on 20 August 2024, 3 months ago
Updated 21 August 2024, 3 months ago
$ php vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME $PHPSTAN_CONFIGURATION --no-progress --error-format=gitlab > phpstan-quality-report.json || true
$ php vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME $PHPSTAN_CONFIGURATION --no-progress || EXIT_CODE=$?
 ------ ----------------------------------------------------------------------------------- 
  Line   src/Plugin/diff/Field/EcoIndexFieldBuilder.php                                     
 ------ ----------------------------------------------------------------------------------- 
  20     Class Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder extends               
         unknown class Drupal\diff\FieldDiffBuilderBase.                                    
         💡 Learn more at https://phpstan.org/user-guide/discovering-symbols                
  32     Access to an undefined property                                                    
         Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder::$configuration.            
         💡 Learn more:                                                                     
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property           
  36     Access to an undefined property                                                    
         Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder::$configuration.            
         💡 Learn more:                                                                     
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property           
  51     Call to an undefined method                                                        
         Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder::t().                       
  52     Access to an undefined property                                                    
         Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder::$configuration.            
         💡 Learn more:                                                                     
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property           
  56     Call to an undefined method                                                        
         Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder::t().                       
  57     Access to an undefined property                                                    
         Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder::$configuration.            
         💡 Learn more:                                                                     
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property           
  60     Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder::buildConfigurationForm()   
         calls parent::buildConfigurationForm() but                                         
         Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder does not                    
         extend any class.                                                                  
  67     Access to an undefined property                                                    
         Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder::$configuration.            
         💡 Learn more:                                                                     
            https://phpstan.org/blog/solving-phpstan-access-to-undefined-property           
  70     Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder::submitConfigurationForm()  
         calls parent::submitConfigurationForm() but                                        
         Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder does not                    
         extend any class.                                                                  
  81     Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder::defaultConfiguration()     
         calls parent::defaultConfiguration() but                                           
         Drupal\ecoindex\Plugin\diff\Field\EcoIndexFieldBuilder does not                    
         extend any class.                                                                  
 ------ ----------------------------------------------------------------------------------- 
 [ERROR] Found 11 errors    
🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France jenue1933 Bordeaux

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

Comments & Activities

Production build 0.71.5 2024