diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000000000000000000000000000000000000..25f7b6a49064ff318ad5e09a220fe3ca7fcb3576 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,19 @@ +parameters: + level: 1 + + ignoreErrors: + - + message: '#\Drupal calls should be avoided in classes, use dependency injection instead#' + paths: + - src/VoteResultStorage.php + - src/VoteStorage.php + + # new static() is a best practice in Drupal, so we cannot fix that. + # @see https://www.drupal.org/docs/develop/development-tools/phpstan/handling-unsafe-usage-of-new-static + - + message: "#^Unsafe usage of new static#" + paths: + - src/Form/SettingsForm.php + - src/Form/VoteDeleteConfirm.php + - src/Form/VoteTypeDeleteConfirm.php + - src/VoteTypeForm.php