Skip to content

Let touched files inherit the plugin PHPStan level [ignore_release] - #288

Merged
snake14 merged 1 commit into
6.x-devfrom
drop-stale-phpstan-comment
Sep 24, 2026
Merged

snake14 merged 1 commit into
6.x-devfrom
drop-stale-phpstan-comment

Conversation

@snake14

@snake14 snake14 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Description

phpstan/phpstan.modified.neon, the config the pre-push hook uses for touched files, pinned level 5 with a comment saying touched files are ratcheted up even where the CI base level is lower. The plugin's phpstan.neon is already at level 5, so the comment no longer describes anything and the pin only repeats the base level.

This removes both, so touched files inherit the plugin's level and the two cannot drift apart. The effective level is unchanged, and CI analyses only phpstan.neon, so CI is unaffected.

Issue No

Related to PG-4897

Steps to Replicate the Issue

Not applicable — this adjusts tooling rather than fixing a defect.

Checklist

  • [✔] Tested locally or on demo2/demo3?
  • [NA] New test case added/updated?
  • [NA] Are all newly added texts included via translation?
  • [NA] Are text sanitized properly? (Eg use of v-text v/s v-html for vue)
  • [✖] Version bumped?
  • [✔] I have understood, reviewed, and tested all AI outputs before use
  • [✔] All AI instructions respect security, IP, and privacy rules
  • [NA] Documentation updated?

The root config is already at level 5, so the overlay no longer needs to pin it or explain a lower base.
@snake14
snake14 marked this pull request as ready for review September 23, 2026 23:23
@snake14
snake14 requested a review from a team September 23, 2026 23:24
@snake14
snake14 enabled auto-merge (squash) September 23, 2026 23:24
@snake14
snake14 merged commit 90a8660 into 6.x-dev Sep 24, 2026
26 of 27 checks passed
@snake14
snake14 deleted the drop-stale-phpstan-comment branch September 24, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants