Skip to content
Snippets Groups Projects
Commit 4c657272 authored by Tim Rohaly's avatar Tim Rohaly
Browse files

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

parent d3f42770
No related branches found
No related tags found
2 merge requests!50Issue #3510555 return int in getCreatedTime(),!49Issue #3509022 by tr: Add phpstan.neon to ignore some phpstan warnings
Pipeline #434226 passed with warnings
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment