All notable changes to class-factory
will be documented in this file.
- Ability to customize how the class is created via
newInstance
. @erikgaal
- Add phpstan with level 9
- Start testing with php 8.2
Make phpstan happier ❤️
- Revert to old behaviour of resolving closure states as it breaks more things than it solves.
- Handling of non-existing properties while collapsing states.
- Unwrap closure states after collapsing properties without property closure states and before collapsing property closure states.
ClosureValue
to wrap closures that should be passed to class constructor as plain closures will be evaluated before doing so.
- Make sure property closure states get the most up-to-date attributes.
- Do not cal invokable classes when collapsing states. Check for closures instead of callables.
- Make sure closures in definition get filled attributes array.
- Improve clarity in
collapseStates()
method.
🏭