- Issue created by @dww
- First commit to issue fork.
Using the defaults at 📌 Setup GitLab CI for Pathologic Needs review , we've now got a failing phpstan job in every GitLab CI pipeline. E.g.
https://git.drupalcode.org/project/pathologic/-/jobs/487802
$ php vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME $PHPSTAN_CONFIGURATION --no-progress || EXIT_CODE=$?
------ -----------------------------------------------------
Line pathologic.module
------ -----------------------------------------------------
273 Cannot unset offset 'qparts' on array{path: mixed}.
------ -----------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Plugin/Filter/FilterPathologic.php
------ ----------------------------------------------------------------------
88 \Drupal calls should be avoided in classes, use dependency injection
instead
------ ----------------------------------------------------------------------
[ERROR] Found 2 errors
Since it's only 2 violations, let's fix them instead of defining a baseline.
Active
2.0
Code