CodeIgniter4 icon indicating copy to clipboard operation
CodeIgniter4 copied to clipboard

Missing Interfaces

Open kenjis opened this issue 3 years ago • 2 comments

This is the result when I remove all Interface related items in phpstan-baseline.neon.dist in 4.3 branch:

 ------ -------------------------------------------------------------------------------------- 
  Line   system/Database/BaseConnection.php                                                    
 ------ -------------------------------------------------------------------------------------- 
  907    Call to an undefined method CodeIgniter\Database\QueryInterface::getOriginalQuery().  
 ------ -------------------------------------------------------------------------------------- 

 ------ -------------------------------------------------------------------------------------- 
  Line   system/Database/Database.php                                                          
 ------ -------------------------------------------------------------------------------------- 
  66     Access to an undefined property CodeIgniter\Database\ConnectionInterface::$connID.    
  70     Access to an undefined property CodeIgniter\Database\ConnectionInterface::$DBDriver.  
  78     Access to an undefined property CodeIgniter\Database\ConnectionInterface::$connID.    
  82     Access to an undefined property CodeIgniter\Database\ConnectionInterface::$DBDriver.  
 ------ -------------------------------------------------------------------------------------- 

 ------ --------------------------------------------------------------------------------------- 
  Line   system/Debug/Toolbar/Collectors/Events.php                                             
 ------ --------------------------------------------------------------------------------------- 
  77     Call to an undefined method CodeIgniter\View\RendererInterface::getPerformanceData().  
 ------ --------------------------------------------------------------------------------------- 

 ------ --------------------------------------------------------------------------------------- 
  Line   system/Debug/Toolbar/Collectors/Views.php                                              
 ------ --------------------------------------------------------------------------------------- 
  92     Call to an undefined method CodeIgniter\View\RendererInterface::getPerformanceData().  
  126    Call to an undefined method CodeIgniter\View\RendererInterface::getData().             
  135    Call to an undefined method CodeIgniter\View\RendererInterface::getPerformanceData().  
 ------ --------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------- 
  Line   system/Router/Router.php                                                                               
 ------ ------------------------------------------------------------------------------------------------------- 
  129    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::setHTTPVerb().                
  137    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getRegisteredControllers().   
  138    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getDefaultNamespace().        
  146    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getRegisteredControllers().   
  147    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getDefaultNamespace().        
  169    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getDefaultNamespace().        
  182    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::isFiltered().                 
  185    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getFiltersForRoute().         
  188    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getFilterForRoute().          
  393    Method CodeIgniter\Router\RouteCollectionInterface::getRoutes() invoked with 1 parameter, 0 required.  
  664    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getRoutesOptions().           
 ------ ------------------------------------------------------------------------------------------------------- 

 ------ ---------------------------------------------------------------------------------------------------- 
  Line   system/View/Cell.php                                                                                
 ------ ---------------------------------------------------------------------------------------------------- 
  84     Property CodeIgniter\View\Cell::$cache (CodeIgniter\Cache\CacheInterface) in empty() is not falsy.  
  103    Property CodeIgniter\View\Cell::$cache (CodeIgniter\Cache\CacheInterface) in empty() is not falsy.  
 ------ ---------------------------------------------------------------------------------------------------- 

                                                                                                                    
 [ERROR] Found 22 errors                                                                                            

Related: #4356, #5909

kenjis avatar Nov 04 '22 02:11 kenjis

Call to an undefined method in 4.5.

 ------ -------------------------------------------------------------------------------------- 
  Line   system/Database/BaseConnection.php                                                    
 ------ -------------------------------------------------------------------------------------- 
  941    Call to an undefined method CodeIgniter\Database\QueryInterface::getOriginalQuery().  
 ------ -------------------------------------------------------------------------------------- 

 ------ --------------------------------------------------------------------------------------- 
  Line   system/Debug/Toolbar/Collectors/Views.php                                              
 ------ --------------------------------------------------------------------------------------- 
  93     Call to an undefined method CodeIgniter\View\RendererInterface::getPerformanceData().  
  128    Call to an undefined method CodeIgniter\View\RendererInterface::getData().             
  139    Call to an undefined method CodeIgniter\View\RendererInterface::getPerformanceData().  
 ------ --------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------ 
  Line   system/Router/Router.php                                                                              
 ------ ------------------------------------------------------------------------------------------------------ 
  144    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::setHTTPVerb().               
  152    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getRegisteredControllers().  
  153    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getDefaultNamespace().       
  161    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getDefaultNamespace().       
  195    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::isFiltered().                
  196    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getFiltersForRoute().        
  709    Call to an undefined method CodeIgniter\Router\RouteCollectionInterface::getRoutesOptions().          
 ------ ------------------------------------------------------------------------------------------------------ 

kenjis avatar Feb 06 '24 01:02 kenjis

Access to an undefined property in 4.5.

 ------ -------------------------------------------------------------------------------------- 
  Line   system/Database/Database.php                                                          
 ------ -------------------------------------------------------------------------------------- 
  67     Access to an undefined property CodeIgniter\Database\ConnectionInterface::$connID.    
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  71     Access to an undefined property CodeIgniter\Database\ConnectionInterface::$DBDriver.  
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  79     Access to an undefined property CodeIgniter\Database\ConnectionInterface::$connID.    
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  83     Access to an undefined property CodeIgniter\Database\ConnectionInterface::$DBDriver.  
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
 ------ -------------------------------------------------------------------------------------- 

 ------ ------------------------------------------------------------------------------------------------------ 
  Line   system/Database/MySQLi/PreparedQuery.php                                                              
 ------ ------------------------------------------------------------------------------------------------------ 
  47     Access to an undefined property CodeIgniter\Database\BaseConnection<mysqli, mysqli_result>::$mysqli.  
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property                  
  48     Access to an undefined property CodeIgniter\Database\BaseConnection<mysqli, mysqli_result>::$mysqli.  
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property                  
  49     Access to an undefined property CodeIgniter\Database\BaseConnection<mysqli, mysqli_result>::$mysqli.  
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property                  
 ------ ------------------------------------------------------------------------------------------------------ 

 ------ -------------------------------------------------------------------------------------- 
  Line   system/Database/SQLSRV/Builder.php                                                    
 ------ -------------------------------------------------------------------------------------- 
  293    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  296    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
 ------ -------------------------------------------------------------------------------------- 

 ------ -------------------------------------------------------------------------------------- 
  Line   system/Database/SQLSRV/Forge.php                                                      
 ------ -------------------------------------------------------------------------------------- 
  115    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  116    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  118    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  119    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  159    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  184    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  222    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  228    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  243    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  245    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  277    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  286    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
  379    Access to an undefined property CodeIgniter\Database\BaseConnection::$schema.         
         💡 Learn more: https://phpstan.org/blog/solving-phpstan-access-to-undefined-property  
 ------ -------------------------------------------------------------------------------------- 

kenjis avatar Feb 06 '24 01:02 kenjis