Skip to content

Issue after phpstan upgrade (unused & missing at the same time) #134

Closed
@jakubvojacek

Description

@jakubvojacek

First of all, thank you for the amazing repo.

Everything was working smoothly until I upgraded to phpstan 0.12.33 (from 0.12.7) and exception-rules to 0.11.1 (from 0.10.1). After the upgrade I am getting both unused @throws warnings and missing warnings

 ------ ------------------------------------------------------------------------- 
  Line   App.php                                                                  
 ------ ------------------------------------------------------------------------- 
  21     Unused @throws App\ApiModule\Lib\DatabaseSelectionException annotation   
  29     Missing @throws App\ApiModule\Lib\DatabaseSelectionException annotation  
  39     Unused @throws App\ApiModule\Lib\AppUnknownException annotation          
  48     Missing @throws App\ApiModule\Lib\AppUnknownException annotation  

Any idea what it could be, please? Not sure how I could share a reproduction sample.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions