zendframework / zend-stdlib

Stdlib component from Zend Framework
BSD 3-Clause "New" or "Revised" License
384 stars 76 forks source link

Prevent extension of static classes #70

Closed 0xPaul closed 7 years ago

0xPaul commented 7 years ago

Merely declaring a class abstract does not correctly convey intent nor prevent misuse. By marking the class final we prevent extension and by using the StaticClass trait we prevent instantiation.

0xPaul commented 7 years ago

Loggerheads.

Ocramius commented 7 years ago

@0xPaul please don't be like that: I really am just doing my job as gatekeeper :|

0xPaul commented 7 years ago

Good job.

Ocramius commented 7 years ago

Urgh, wth, are @0xPaul and @Bilge aliases? (Yes, I just noticed the commit author)