Closed (fixed)
Project:
Pathologic
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
15 Dec 2023 at 03:38 UTC
Updated:
29 Mar 2026 at 19:50 UTC
Jump to comment: Most recent
Using the defaults at #3405392: Setup GitLab CI for Pathologic, 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.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
hamid.ali commentedWorking on this issue
Comment #6
prudloff commentedI could not use promoted properties or autowiring without dropping support for older Drupal versions.
Comment #9
dwwLovely, thanks! Reviewed, all looks great. Merged to 2.0.x.