Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
votingapi
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
votingapi
Merge requests
!49
Issue
#3509022
by tr: Add phpstan.neon to ignore some phpstan warnings
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3509022
by tr: Add phpstan.neon to ignore some phpstan warnings
issue/votingapi-3509022:3509022-add-phpstan.neon-to
into
4.0.x
Overview
0
Commits
2
Pipelines
3
Changes
1
Merged
Tim Rohaly
requested to merge
issue/votingapi-3509022:3509022-add-phpstan.neon-to
into
4.0.x
2 months ago
Overview
0
Commits
2
Pipelines
3
Changes
1
Expand
Closes
#3509022
0
0
Merge request reports
Compare
4.0.x
version 2
11ac231e
2 months ago
version 1
5cdbc700
2 months ago
4.0.x (base)
and
latest version
latest version
11ac231e
2 commits,
2 months ago
version 2
11ac231e
2 commits,
2 months ago
version 1
5cdbc700
1 commit,
2 months ago
1 file
+
19
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
phpstan.neon
0 → 100644
+
19
−
0
Options
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