Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
P
php-css-selector-interface
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
php-extended
php-css-selector-interface
Commits
fa115403
Commit
fa115403
authored
4 months ago
by
Anastaszor
Browse files
Options
Downloads
Patches
Plain Diff
Harmonization 2024-12-01 Update @SuppressWarnings phpstan-phpmd conflict
parent
c192cd9a
Branches
Branches containing commit
Tags
7.0.6
Tags containing commit
No related merge requests found
Pipeline
#1568119061
passed
4 months ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
runtests.sh
+8
-0
8 additions, 0 deletions
runtests.sh
with
8 additions
and
0 deletions
runtests.sh
+
8
−
0
View file @
fa115403
...
...
@@ -489,6 +489,14 @@ run_phpcsfixer
RUN_RESULT_PHPCSFIXER
=
$?
EXIT_CODE
=
$((
EXIT_CODE
+
RUN_RESULT_PHPCSFIXER
))
# Update all the @SuppressWarnings tags so that phpstan do not complain with them
# by adding double quotes around the message inside the @SuppressWarnings tag
# @see https://github.com/phpstan/phpdoc-parser/issues/256
log_info
"CHECK FOR @SuppressWarnings() UNQUOTED ANNOTATIONS IN SOURCE CODE"
find
"
$CURRDIR
/src/"
-name
"*.php"
-exec
sed
-i
.bak
-E
's/@SuppressWarnings\(([^"\(\)]*)\)/@SuppressWarnings("\1")/g'
{}
\;
find
"
$CURRDIR
/src/"
-name
"*.bak"
-exec
rm
{}
\;
# If the library contains -cache- in its name, it uses psr/cache or psr/simple-cache
# interfaces libraries. Such libraries enforce the mixed type as output, so ignore
# the ban mixed requirement for such libraries
...
...
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