alies-dev/psalm-plugin-pest
Larablocks Analysis
alies-dev/psalm-plugin-pest works with any PHP project: the latest release (1.0.1, Nov 21, 2026) doesn't depend on Laravel.
Recommendation checks
Use with careUse with care: meets 2 of 4 checks.
- Released in the last 12 months (Nov 21, 2026)
- First released under 90 days ago
- 20,884 downloads a month (at least 10,000)
- 2 GitHub stars (needs 100)
State
Too new to judge- Last stable release: Nov 21, 2026.
- 12 releases in the last 12 months.
- First released: Sep 30, 2026.
- Monthly downloads: 20,884.
- 4 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.
| Install | |
|---|---|
composer require alies-dev/psalm-plugin-pest |
|
| Latest Version: | 1.0.1 |
| PHP: | ^8.3 |
| License: | MIT |
| Last Updated: | Nov 21, 2026 |
| Links: | GitHub · Packagist |
Your Pest tests, fully typed. Bugs contained.
This plugin teaches Psalm how Pest really works. Keep your tests in the analysis, get real types and catch broken tests before you run them.
Install
Requires Psalm 7.6+ and Pest 4.5+ or 5.
composer require --dev alies-dev/psalm-plugin-pest
vendor/bin/psalm-plugin enable alies-dev/psalm-plugin-pest
That's it. Make sure tests/ is in <projectFiles> of your psalm.xml.
Before and after
uses(Tests\TestCase::class);
beforeEach(function () {
$this->cart = new Cart();
});
it('totals the cart', function () {
$this->actingAs(admin()); // before: TestCall::__call(), unchecked
// after: Tests\TestCase::actingAs()
$total = $this->cart->total(); // before: TestCall, so $total is TestCall
// after: Cart from beforeEach(), int
expect($total)->toBeString(); // after: PestImpossibleExpectation,
}); // total() returns int
Found a false positive? Open an issue with a snippet.
License
MIT, see LICENSE.
Alternatives to alies-dev/psalm-plugin-pest
PHPStan extensions to infer Pest closure $this type from test file mappings.
Method-level and class-level maintainability limits (complexity, body lines, par...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0.1 | ^8.3 | MIT | |
| 1.0.0 | ^8.3 | MIT | |
| 0.5.0 | ^8.3 | MIT | |
| 0.4.0 | ^8.3 | MIT | |
| 0.3.0 | ^8.3 | MIT | |
| 0.2.3 | ^8.3 | MIT | |
| 0.2.2 | ^8.3 | MIT | |
| 0.2.1 | ^8.3 | MIT | |
| 0.2.0 | ^8.3 | MIT | |
| 0.1.0 | ^8.3 | MIT |
Pre-releases (2)
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0.0-rc.2 | ^8.3 | MIT | |
| 1.0.0-rc.1 | ^8.3 | MIT |