Problem/Motivation
Following the update to PHPStan 1.11 we can now use the more specific @phpstan-ignore
instead of @phpstan-ignore-next-line
, where we can now specify exactly what we are ignoring so other errors on the same line do not get ignored.
Documentation for this feature is at https://phpstan.org/user-guide/ignoring-errors#ignoring-in-code-using-ph...
Steps to reproduce
Proposed resolution
Remove all @phpstan-ignore-next-line
.
Run PHPStan in verbose mode.
Re-add all comments back using @phpstan-ignore
with the specific error identifier.