Skip to content

Require project PHPStan config and remove hidden wrapper fallback behavior#18

Merged
UltraBob merged 6 commits intomainfrom
feature/phpstan-require-project-config
Mar 4, 2026
Merged

Require project PHPStan config and remove hidden wrapper fallback behavior#18
UltraBob merged 6 commits intomainfrom
feature/phpstan-require-project-config

Conversation

@UltraBob
Copy link
Owner

@UltraBob UltraBob commented Mar 2, 2026

Closes #15

Summary

  • Require project PHPStan config (phpstan.neon*) unless --configuration is provided.
  • Remove hidden fallback to add-on assets/phpstan.neon.
  • Remove runtime scope/exclude and default-path injection from wrapper.
  • Remove runtime baseline include temp-config injection.
  • Keep post---generate-baseline config update behavior.

UX change

When project config is missing, wrapper now fails fast with a clear message explaining how to add phpstan.neon or pass --configuration.

Docs

  • README updated to describe PHPStan config requirement.
  • docs/tooling/config-sources.md updated to remove fallback/injection behavior.

Test

  • Added one focused test: phpstan fails with helpful message when project config is missing.

@UltraBob UltraBob merged commit ecce97f into main Mar 4, 2026
3 checks passed
@UltraBob UltraBob deleted the feature/phpstan-require-project-config branch March 4, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Require project PHPStan config and remove hidden wrapper fallback injection

1 participant