Closed kekalainen closed 4 months ago
Thanks for your contribution. This PR cannot be merged, because the "unsafe" usage of new static(). This change might break once the class is extended, and the constructor is overridden with different parameters.
Use late static bindings in factory methods to facilitate constructing derived classes.
Retained the return types for PHP <8.0 compatibility.