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
Commits
4c657272
Commit
4c657272
authored
1 month ago
by
Tim Rohaly
Browse files
Options
Downloads
Patches
Plain Diff
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
!50
Issue #3510555 return int in getCreatedTime()
,
!49
Issue #3509022 by tr: Add phpstan.neon to ignore some phpstan warnings
Pipeline
#434226
passed with warnings
1 month ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
phpstan.neon
+19
-0
19 additions, 0 deletions
phpstan.neon
with
19 additions
and
0 deletions
phpstan.neon
0 → 100644
+
19
−
0
View file @
4c657272
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment