Releases: ekvedaras/class-factory
Releases · ekvedaras/class-factory
v1.2.1
Updated
- Dev dependencies
- Rector
- Enable PHP CS Fixer parallel
- Resolve PHP 8.4 deprecation
- Additional state closure example in readme
v1.2.0
Added
- Ability to customize how the class is created via
newInstance
. @erikgaal
v1.1.5
- Add phpstan with level 9
- Start testing with php 8.2
v1.1.3
Fixed
- Revert to old behaviour of resolving closure states as it breaks more things than it solves.
v1.1.2
Fixed
- Handling of non-existing properties while collapsing states
v1.1.1
Fixed
- Unwrap closure states after collapsing properties without property closure states and before collapsing property closure states.
v1.1.0
Added
ClosureValue
to wrap closures that should be passed to class constructor as plain closures will be evaluated before doing so.
Fixed
- Make sure property closure states get the most up-to-date attributes.
v1.0.2
Fixed
- Do not cal invokable classes when collapsing states. Check for closures instead of callables.
v1.0.1
Fixed
- Make sure closures in definition get filled attributes array.
Updated
- Improve clarity in
collapseStates()
method.