Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293729

Change @phpstan-ignore-next-line to more specific @phpstan-ignore

$
0
0

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.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 293729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>