Skip to content
Snippets Groups Projects
Commit 4fb59dc3 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3369381 by Project Update Bot: Automated Drupal 10 compatibility fixes...

Issue #3369381 by Project Update Bot: Automated Drupal 10 compatibility fixes for Unite and functional tests
parent 9ae73699
Branches
Tags
No related merge requests found
Pipeline #25832 failed
......@@ -141,10 +141,10 @@ stages:
<<: [ *with-composer-cache, *default-job-settings-lint ]
stage: 🪄 Lint
script:
- composer phpcs -- --report-junit=junit.xml --report-full --report-summary
- yarn phpcs
'🧹 PHP Static Analysis (phpstan)':
<<: [ *with-composer-cache, *default-job-settings-lint ]
stage: 🪄 Lint
script:
- php -d apc.enabled=0 -d apc.enable_cli=0 vendor/bin/phpstan analyze --configuration=phpstan.neon.dist --error-format=junit > junit.xml
- php vendor/bin/phpstan
......@@ -25,5 +25,13 @@
"require": {
"drupal/core": "^8 || ^9 || ^10",
"drupal/entityqueue": "~1.0"
},
"require-dev": {
"drupal/core-dev": "~10",
"drush/drush": "~11.0 || ~12.0",
"phpstan/phpstan": "~1.10.0",
"phpstan/extension-installer": "~1.3.0",
"mglaman/phpstan-drupal": "~1.1.0",
"phpstan/phpstan-deprecation-rules": "~1.1.0"
}
}
# Configuration file for PHPStan static code checking, see https://phpstan.org .
# PHPStan is triggered on Drupal CI in commit-code-check.sh.
includes:
- phpstan-baseline.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
......@@ -9,14 +7,13 @@ parameters:
level: 1
paths:
- .
- ../composer
- web/modules/contrib/entityqueue_form_widget
excludePaths:
# Skip sites directory.
- ../sites
# Skip test fixtures.
- ../*/node_modules/*
- */tests/fixtures/*.php
- */tests/fixtures/*.php.gz
ignoreErrors:
# new static() is a best practice in Drupal, so we cannot fix that.
......@@ -27,4 +24,4 @@ parameters:
- "#^Plugin definitions cannot be altered.#"
- "#^Missing cache backend declaration for performance.#"
- "#cache tag might be unclear and does not contain the cache key in it.#"
- "#^Class .* extends @internal class#"
- "#^Class .* extends @internal class#"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment