Issues reported by PhpStan

Created on 23 August 2024, 5 months ago
Updated 6 September 2024, 4 months ago

Problem/Motivation

Steps to reproduce

 ------ ------------------------------------------------------------- 
  Line   modules/knowledge_ldap/knowledge_ldap.module                 
 ------ ------------------------------------------------------------- 
  14     Parameter $entry of function                                 
         knowledge_ldap_ldap_user_edit_user_alter() has invalid type  
         Symfony\Component\Ldap\Entry.                                
 ------ ------------------------------------------------------------- 
 ------ ------------------------------------------------------------------------- 
  Line   modules/knowledge_ldap/src/KnowledgeLdapLeaderInterface.php              
 ------ ------------------------------------------------------------------------- 
  24     Parameter $ldap_entry of method                                          
         Drupal\knowledge_ldap\KnowledgeLdapLeaderInterface::updateLeaderField()  
         has invalid type Symfony\Component\Ldap\Entry.                           
  24     Parameter $server of method                                              
         Drupal\knowledge_ldap\KnowledgeLdapLeaderInterface::updateLeaderField()  
         has invalid type Drupal\ldap_servers\Entity\Server.                      
 ------ ------------------------------------------------------------------------- 
 ------ ---------------------------------------------------------------------- 
  Line   modules/knowledge_ldap/src/Service/LdapLeaderService.php              
 ------ ---------------------------------------------------------------------- 
  100    Parameter $token_processor of method                                  
         Drupal\knowledge_ldap\Service\LdapLeaderService::__construct() has    
         invalid type Drupal\ldap_servers\Processor\TokenProcessor.            
  101    Parameter $ldap_bridge of method                                      
         Drupal\knowledge_ldap\Service\LdapLeaderService::__construct() has    
         invalid type Drupal\ldap_servers\LdapBridgeInterface.                 
  102    Parameter $ldap_group_manager of method                               
         Drupal\knowledge_ldap\Service\LdapLeaderService::__construct() has    
         invalid type Drupal\ldap_servers\LdapGroupManager.                    
  103    Parameter $ldap_user_processor of method                              
         Drupal\knowledge_ldap\Service\LdapLeaderService::__construct() has    
         invalid type Drupal\ldap_user\Processor\DrupalUserProcessor.          
  118    Parameter $ldap_entry of method                                       
         Drupal\knowledge_ldap\Service\LdapLeaderService::updateLeaderField()  
         has invalid type Symfony\Component\Ldap\Entry.                        
  118    Parameter $ldap_server of method                                      
         Drupal\knowledge_ldap\Service\LdapLeaderService::updateLeaderField()  
         has invalid type Drupal\ldap_servers\Entity\Server.                   
 ------ ---------------------------------------------------------------------- 
 ------ ----------------------------------------------------------------------- 
  Line   tests/src/Unit/KnowledgeStatisticsUnitTest.php                         
 ------ ----------------------------------------------------------------------- 
  81     Class Drupal\knowledge\KnowledgeStatistics constructor invoked with 8  
         parameters, 9-11 required.                                             
 ------ ----------------------------------------------------------------------- 
 [ERROR] Found 10 errors   

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

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