Skip to content

Add phpstan and psalm modules for static analysis (v2.2.7)#43

Merged
AntonioCS merged 1 commit intomainfrom
feature/phpstan-psalm-modules
Jan 4, 2026
Merged

Add phpstan and psalm modules for static analysis (v2.2.7)#43
AntonioCS merged 1 commit intomainfrom
feature/phpstan-psalm-modules

Conversation

@AntonioCS
Copy link
Owner

Summary

  • Add PHPStan module (modules/php/phpstan/)

    • php/phpstan/analyse - Run PHPStan analysis
    • php/phpstan/staged - Run on staged PHP files only
    • Config: phpstan_level, phpstan_memory_limit
    • Runtime: phpstan_files=, phpstan_args=
  • Add Psalm module (modules/php/psalm/)

    • php/psalm/analyse - Run Psalm analysis
    • php/psalm/staged - Run on staged PHP files only
    • Config: psalm_threads
    • Runtime: psalm_files=, psalm_args=
  • Remove old php/phpstan and php/psalm targets from php module

  • Add tests for both modules (12 tests, 22 assertions)

Test plan

  • All 99 tests pass (219 assertions)
  • New phpstan tests: config defaults, build_args variations
  • New psalm tests: config defaults, build_args variations

Closes https://trello.com/c/S4CnmCFz

- PHPStan module: php/phpstan/analyse, php/phpstan/staged
  Config: phpstan_level, phpstan_memory_limit
  Runtime: phpstan_files=, phpstan_args=

- Psalm module: php/psalm/analyse, php/psalm/staged
  Config: psalm_threads
  Runtime: psalm_files=, psalm_args=

- Remove old php/phpstan and php/psalm targets from php module
- Add tests for both modules (12 tests, 22 assertions)
@AntonioCS AntonioCS merged commit ac19689 into main Jan 4, 2026
1 check passed
@AntonioCS AntonioCS deleted the feature/phpstan-psalm-modules branch January 4, 2026 10:30
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.

1 participant