Tweak PHPStan config so paths are always correct and baseline is more usable

Migrated issue

Reported by: alexpott

Related to !189 (merged) !69 (closed)

Problem/Motivation

Follow on from #3395419: Allow contrib modules to run PHPStan via GitLab CI

Proposed resolution

  • Run PHPStan from module directory so paths are correct
  • Remove baseline before generating a new one
  • Add new variable _PHPSTAN_BASELINE_FILENAME with default value 'phpstan-baseline.neon'

Remaining tasks

User interface changes

API changes

Data model changes

Related issue: Issue #3445001

Edited Feb 12, 2026 by drupalbot
Assignee Loading
Time tracking Loading