PHP Singletons are bad. If it’s a singleton, it’s just functional code so just write functional code.

And they make you do bad things in test suites.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.