🎉 Major Improvements
Simplified Object Serialization with brick/varexporter
- Replaced native
var_export()with brick/varexporter - Breaking Change: Objects no longer require
__set_state()method - Object arguments now serialize automatically via reflection
Typed Event Classes
- Introduced dedicated event classes with full type safety
- Better IDE autocomplete and static analysis support
- New event classes:
BeforeDiscoverEvent,AfterDiscoverEventBeforeScanEvent,AfterScanEventBeforeCacheClearEvent,AfterCacheClearEvent
- Each event has a
NAMEconstant and typed accessor methods
📦 Dependencies
- Added:
brick/varexporter: ^0.7.0
📝 Migration Guide
For existing users: No action required. The changes are backward compatible. If you have objects with __set_state() methods in attribute arguments, they will continue to work but the method is no longer necessary.