phpstan/phpstan-mockery
PHPStan extension for Mockery: infers intersection types for mocks (Foo&MockInterface), understands shouldReceive/shouldHaveReceived/allows/expects, supports partial/alias/overload mocks, multiple interfaces, and proper constructor args for accurate static analysis.
@var annotations for mocks and catches missing method stubs early in CI.PHPUnit\Framework\MockObject (this package has no value there).UserRepository&MockInterface), so you stop wasting time on false static analysis errors. Just composer require --dev phpstan/phpstan-mockery—no code changes needed."How can I help you explore Laravel packages today?