weirdan/codeception-psalm-module
Codeception module that integrates Psalm static analysis into your test workflow. Run Psalm checks as part of Codeception suites to catch type issues and improve PHP code quality during CI and local testing.
composer require --dev weirdan/codeception-pselm-module.suite.yml):
modules:
enabled:
- Psalm
vimeo/psalm globally/locally, or rely on the module’s auto-bootstrapping if Psalm is in require-dev.Acceptance or Unit suite to catch type-related bugs during test runs—no extra CLI commands needed.Start by checking the tests/ directory for Psalm output—failures will appear inline in Codeception’s test output.
Unit suites to validate types used in application code as tested. For example, run Psalm when testing domain logic to catch mismatches between expected types and runtime assumptions.errorLevel: 1 or stricter in psalm.xml), enforcing quality in CI without manual intervention.psalm.xml—the module reads from it by default (place it in project root). Use <projectFiles> to scope analysis to relevant namespaces (e.g., src/).skip: or groups in Codeception to only run Psalm on critical suites (e.g., api but not step Definitions suite)../vendor/bin/codecept run Unit locally to get static analysis + test results in one flow—ideal for pre-commit checks.--no-progress or suppress non-critical issues via psalm.xml to avoid overwhelming logs.Unit run). Use processUncoveredFilesOnly: false in psalm.xml to speed up.verbose: true in the Psalm module config to see exact Psalm CLI invocation—useful for reproducing locally.config_file: path/to/psalm.local.xml in module options.phpVersion in psalm.xml) matches your CI/PHP runtime to avoid false positives.How can I help you explore Laravel packages today?