14
Remove "final" keywords from classes and methods in vendor packages with Unfinalize
(laravel-news.com)
Welcome to /c/php! This is a community for PHP developers and enthusiasts to share and discuss anything related to PHP. From the latest updates and tutorials, to your burning questions and amazing personal projects, we welcome all contributions.
Let's foster an environment of respect, learning, and mutual growth. Whether you're an experienced PHP developer, a beginner, or just interested in learning more about PHP, we're glad to have you here!
Let's code, learn, and grow together!
Just because one person said "final is bad", the Laravel fanboy herd is flocking to solutions like this. In my opinion, the package per se is not bad, but the unreflected, absolute statement "final is bad" is the problem.
In my opinion, the package itself is bad. It suggests by its very existence that
final
is bad. It tempts to use dependencies in a way that was not intended by their developers.This. And, unlike Lombok, there is no -deUnfinalize. Sure seems like youre stuck with fixing your codebase, when this thing finally folds.
Yes the package pushes the notion "final is bad". Throw both into the trash.