phpstan-baseline-analysis icon indicating copy to clipboard operation
phpstan-baseline-analysis copied to clipboard

invalid phpdocs

Open staabm opened this issue 1 year ago • 1 comments

these errors should be counted as invalid hppdoc

------ ---------------------------------------------------------------------- 
  Line   app/shared/controllers/KMCmsfrontendController.php                    
 ------ ---------------------------------------------------------------------- 
  8      PHPDoc tag @var has invalid value (DataLayerError|null;): Unexpected  
         token ";", expected TOKEN_HORIZONTAL_WS at offset 35                  
 ------ ---------------------------------------------------------------------- 

 ------ --------------------------------------------------------------------- 
  Line   lib/KunzmannRemoteOAuthRequest.php                                   
 ------ --------------------------------------------------------------------- 
  46     PHPDoc tag @return has invalid value (array('id' => string, 'email'  
         => string, 'firstname' => string, 'lastname' => string,              
         'authProvider' => string}): Unexpected token "(", expected           
         TOKEN_HORIZONTAL_WS at offset [24](https://github.com/complex-gmbh/kunzmann/actions/runs/4818214651/jobs/8579907342?pr=4056#step:16:25)                                     
 ------ ---------------------------------------------------------------------

staabm avatar Apr 27 '23 09:04 staabm

needs test first, to verify its not yet supported, similar to https://github.com/staabm/phpstan-baseline-analysis/blob/cef69716572d2bd3399ce1fdf77185235d25bf43/tests/BaselineAnalyzerTest.php#L83-L98

staabm avatar Oct 02 '23 06:10 staabm