The other night I made this little #PHP tool that validates #PHPDoc annotations against the actual method signature, to make sure that they are compatible and don't drift apart over time.

I use it as a quick check before running #PHPStan to make sure that the static analysis is correctly informed. Published it on #Packagist in case anyone else would find it useful too: https://packagist.org/packages/nsrosenqvist/phpdoc-validator

nsrosenqvist/phpdoc-validator - Packagist.org

Validates PHPDoc @param and @return tags against method signatures

@nsrosenqvist this is exactly what I’ve been looking for. Thank you!