PHPStan throws violation on accessing ->because()
after ->excluding()
#238
Labels
bug
Something isn't working
->because()
after ->excluding()
#238
Bug Description
Running PHPat as documented while validating test files with PHPStan throws violation, accessing
->because()
after->excluding()
because->excluding()
returns aTipOrBuildStep
but is annotated to return aBuildStep
, making calling->because()
polymorphic and therefore invalid.Additional context
results in
Proposed solution
By changing the signature of
->excluding()
to returnTipOrBuildStep
the polymorphic call goes away. I'm happy to provide a PR for that change.The text was updated successfully, but these errors were encountered: