psalm/plugin-mockery
Adds Psalm static analysis support for the Mockery testing framework. Improves type inference and understanding of mocked objects and expectations in PHPUnit-style tests. Install via Composer and enable with psalm-plugin for better mock-related diagnostics.
Executives: "This plugin ensures our test code is as rigorously checked as production code—reducing hidden defects that cause production incidents. It’s a zero-friction, one-time setup with immediate ROI in defect prevention and reduced debugging time."
Engineering: "Seamlessly integrates with existing Psalm and Mockery workflows—no code changes required. Eliminates manual @var annotations for mocks, resolves false positives in test code analysis, and accelerates CI pipelines by catching type errors early. Fully compatible with current toolchain versions and requires no ongoing maintenance."
How can I help you explore Laravel packages today?