silverstripe / .github

0 stars 2 forks source link

Validate @method docblock tag in CI #171

Closed emteknetnz closed 9 months ago

emteknetnz commented 11 months ago

Split off from https://github.com/silverstripe/.github/issues/163

Acceptance criteria

Notes

PRs

Note: After merging the below, reassign to Guy so they can add this to packagist and roll it out to all the CMS 5 supported modules

Module Standardiser PRs

Note: For any PR that had outstanding PHPLint issues, I've manually fixed whatever needed to be fixed as a separate commit. Note that these had to be run against the 5 (or equivalent) branches because the @method annotation rule doesn't work correctly against the codebase if the generic types aren't available - and those were merged into the 5 (or equivalent) branches.

GuySartorelli commented 10 months ago

In order for the types to correctly resolve with PHPStan analysis of the existing @method annotations, we need generics in place. This is necessary to validate that the existing annotations are correct.

GuySartorelli commented 9 months ago

@emteknetnz seems like you're reviewing this so assigning to you