Skip to content
Snippets Groups Projects

Issue #3509022 by tr: Add phpstan.neon to ignore some phpstan warnings

Merged Tim Rohaly requested to merge issue/votingapi-3509022:3509022-add-phpstan.neon-to into 4.0.x
phpstan.neon 0 → 100644
+ 19
0
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
Loading