Skip to content

Instantly share code, notes, and snippets.

Last active February 7, 2019 15:42
What would you like to do?
Sample phpstan.neon file to use when checking for Drupal 8 deprecated functions
customRulesetUsed: true
reportUnmatchedIgnoredErrors: false
# Exclude directories that you may need to
- themes/custom/scholarly/js/revolution
# Ignore phpstan-drupal extension's rules.
- '#\Drupal calls should be avoided in classes, use dependency injection instead#'
- '#Plugin definitions cannot be altered.#'
- '#Missing cache backend declaration for performance.#'
- '#Plugin manager has cache backend specified but does not declare cache tags.#'
- vendor/mglaman/phpstan-drupal/extension.neon
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment