issues reported by phpstan

Created on 20 November 2023, 7 months ago
Updated 31 December 2023, 6 months ago

Problem/Motivation

Steps to reproduce

$ 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/Controller/LoginController.php                                            
 ------ ------------------------------------------------------------------------------ 
  121    Unsafe usage of new static().                                                 
         πŸ’‘ See:                                                                       
            https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static  
 ------ ------------------------------------------------------------------------------ 
 ------ ------------------------------------------------------------------------------ 
  Line   src/Form/LdapSsoAdminForm.php                                                 
 ------ ------------------------------------------------------------------------------ 
  40     Unsafe usage of new static().                                                 
         πŸ’‘ See:                                                                       
            https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static                                    
 ------ ------------------------------------------------------------------------------ 
 ------ ------------------------------------------------------------------- 
  Line   src/LdapSsoBootSubscriber.php                                      
 ------ ------------------------------------------------------------------- 
  125    Parameter $event of method                                         
         Drupal\ldap_sso\LdapSsoBootSubscriber::checkSsoLoad() has invalid  
         type Symfony\Component\HttpKernel\Event\GetResponseEvent.          
 ------ ------------------------------------------------------------------- 
 [ERROR] Found 3 errors   

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

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.69.0 2024