"PHPStan that understands your aggregates and catches event sourcing mistakes before runtime."
- Property initialization for aggregate roots and child aggregates, so PHPStan does not report false uninitialized property errors.
- Recording in apply methods is reported as an error, because recording events while replaying them leads to duplicated events.
composer require --dev patchlevel/event-sourcing-phpstan-extensionRegister the extension in your phpstan.neon:
includes:
- vendor/patchlevel/event-sourcing-phpstan-extension/extension.neonWe 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.