patchlevel/event-sourcing-phpstan-extension
PHPStan extension for patchlevel/event-sourcing that validates aggregates before runtime: flags uninitialized and unused properties, write-only state, event recording inside apply methods, and state changes outside apply.
"PHPStan that understands your aggregates and catches event sourcing mistakes before runtime."
composer require --dev patchlevel/event-sourcing-phpstan-extension
If you use phpstan/extension-installer, the extension is registered automatically. Otherwise register it in your phpstan.neon:
includes:
- vendor/patchlevel/event-sourcing-phpstan-extension/extension.neon
We are open to contributions as long as they are in line with our BC-Policy.
Also note that the composer.lock is always generated with the newest supported PHP version as this is the version our tools run in the CI.
How can I help you explore Laravel packages today?