Download the PHP package patchlevel/event-sourcing-phpstan-extension without Composer
On this page you can find all versions of the php package patchlevel/event-sourcing-phpstan-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download patchlevel/event-sourcing-phpstan-extension
More information about patchlevel/event-sourcing-phpstan-extension
Files in patchlevel/event-sourcing-phpstan-extension
Download patchlevel/event-sourcing-phpstan-extension
More information about patchlevel/event-sourcing-phpstan-extension
Files in patchlevel/event-sourcing-phpstan-extension
Vendor patchlevel
Package event-sourcing-phpstan-extension
Short Description PHPStan that understands your aggregates and catches event sourcing mistakes before runtime
License MIT
Homepage https://patchlevel.dev/docs/event-sourcing-phpstan-extension/latest
Package event-sourcing-phpstan-extension
Short Description PHPStan that understands your aggregates and catches event sourcing mistakes before runtime
License MIT
Homepage https://patchlevel.dev/docs/event-sourcing-phpstan-extension/latest
Please rate this library. Is it a good library?
Informations about the package event-sourcing-phpstan-extension
event-sourcing-phpstan-extension
"PHPStan that understands your aggregates and catches event sourcing mistakes before runtime."
Features
- Property initialization for aggregate roots and child aggregates, so PHPStan does not report false uninitialized property errors.
- Unused properties are reported when no apply method writes them, because such a property can never receive state from an event.
- Write only properties are reported when apply methods store state that is never read, because state that is not used to check invariants belongs in a projection.
- Recording in apply methods is reported as an error, because recording events while replaying them leads to duplicated events.
- Writing state outside apply methods is reported as an error, because state that is not derived from an event is lost when the aggregate is reloaded.
Installation
If you use phpstan/extension-installer, the extension is registered automatically. Otherwise register it in your phpstan.neon:
Documentation
Integration
Contributing
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.
All versions of event-sourcing-phpstan-extension with dependencies
PHP Build Version
Package Version
The package patchlevel/event-sourcing-phpstan-extension contains the following files
Loading the files please wait ...