Browsing Category

Uncategorized

Work around “unsafe usage of new static()”

Uncategorized

During a recent update of some of my library dependencies I found that one of my dependencies had marked their constructors as final. When I asked if it was possible to de-finalize them, they told me to remove it and run static analysis. It turns out that the answer lies in phpstan’s rule for Unsafe … Continued