owncloud / data_exporter

Export/Import for ownCloud user data
GNU General Public License v2.0
7 stars 5 forks source link

Nightly failed on phpStan-php 7.4 #239

Closed S-Panta closed 6 months ago

S-Panta commented 6 months ago
 ------ ----------------------------------------------------- 
  Line   lib/Importer/FilesImporter.php                       
 ------ ----------------------------------------------------- 
  94     Cannot call method getPath() on object|true.         
  101    Cannot call method getType() on object|true.         
  119    Cannot call method getETag() on object|true.         
  120    Cannot call method getPermissions() on object|true.  
  126    Cannot call method getType() on object|true.         
  127    Cannot call method getPath() on object|true.         
  133    Cannot call method getETag() on object|true.         
  134    Cannot call method getPermissions() on object|true.  
 ------ ----------------------------------------------------- 

 ------ ---------------------------------------------------- 
  Line   lib/Importer/MetadataImporter/ShareImporter.php     
 ------ ---------------------------------------------------- 
  136    Cannot call method getShareType() on object|true.   
  138    Cannot call method getOwner() on object|true.       
  140    Cannot call method getSharedWith() on object|true.  
  146    Cannot call method getPath() on object|true.        
  147    Cannot call method getOwner() on object|true.       
  154    Cannot call method getOwner() on object|true.       
  155    Cannot call method getSharedWith() on object|true.  
  160    Cannot call method getPath() on object|true.        
  161    Cannot call method getSharedWith() on object|true.  
  167    Cannot call method getPath() on object|true.        
  168    Cannot call method getOwner() on object|true.       
  174    Cannot call method getOwner() on object|true.       
  179    Cannot call method getPath() on object|true.        
  180    Cannot call method getOwner() on object|true.       
  186    Cannot call method getOwner() on object|true.       
  187    Cannot call method getSharedWith() on object|true.  
  197    Cannot call method getPath() on object|true.        
  198    Cannot call method getOwner() on object|true.       
 ------ ---------------------------------------------------- 

 ------ ----------------------------------------------------------- 
  Line   lib/Importer/TrashBinImporter.php                          
 ------ ----------------------------------------------------------- 
  124    Cannot call method getPath() on object|true.               
  125    Cannot call method getPath() on object|true.               
  131    Cannot call method getType() on object|true.               
  149    Cannot call method getETag() on object|true.               
  150    Cannot call method getPermissions() on object|true.        
  155    Cannot call method getType() on object|true.               
  158    Cannot call method getETag() on object|true.               
  159    Cannot call method getPermissions() on object|true.        
  164    Cannot call method getOriginalLocation() on object|true.   
  166    Cannot call method getOriginalName() on object|true.       
  168    Cannot call method getDeletionTimestamp() on object|true.  
  169    Cannot call method getOriginalLocation() on object|true.   
 ------ ----------------------------------------------------------- 

 [ERROR] Found 38 errors                                                        

make: *** [Makefile:143: test-php-phpstan] Error 1

his prevents any later tests from being run.

phil-davis commented 6 months ago

I suppose that this will be because the latest https://github.com/phpstan/phpstan/releases/tag/1.10.51 release will have new checks that are now finding existing issues in the code. I will look.