Closed catharsisjelly closed 1 year ago
Thanks for kicking this off, @catharsisjelly!
I updated the Github workflow to match SS 5 requirements (that being, we rely on the default matrix).
Now is our opportunity to update method signatures to be more strict.
$class
argument in PopulateFactory::createObject()
I did prefer it being renamed to $class
(from $name
on the parent class), as that was more contextually descriptive, but because PHP 8 now supports named arguments, I thought this might cause some issues if there is inconsistency between the parent and child class.
Just a heads up that I have not yet had the opportunity to manually test these changes.
Thanks for kicking this off, @catharsisjelly!
No problem!
Testing
Just a heads up that I have not yet had the opportunity to manually test these changes.
I have an SS5. Site I'm using this for at the moment so I will pull these changes and let you know if anything breaks.
Working fine for me, happy to try a few things out if you need it.
Making SS v5 compatible
Release wise I suggest you do what silverstripe/versioned did and mark this as a major (breaking) change