Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Interfaces #6814

Open
kenjis opened this issue Nov 4, 2022 · 2 comments
Open

Missing Interfaces #6814

kenjis opened this issue Nov 4, 2022 · 2 comments
Labels

Comments

@kenjis
Copy link
Member

kenjis commented Nov 4, 2022

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
Copy link
Member Author

kenjis commented Feb 6, 2024

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
Copy link
Member Author

kenjis commented Feb 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant