Public entries tagged #php

Does it make sense to write tests for enums?

I feel kind of like I should, just like I feel like I should write tests for public constants. If someone changes the static value, I want a test to complain about it, but PHPStan complains about me writing these tests because “it will always be true.” Until someone or some AI agent decides to change it.

Thoughts?

Continue reading →

Where did we ever land on traits with interfaces? I see this RFC from 2016 (TEN YEARS AGO!), but I swear it was something discussed more recently leading up to 8.4 or 8.5. Was there a more recent effort to adopt them, or was I dreaming that?

wiki.php.net/rfc/traits-with-i

Continue reading →

Do you have any PHP projects running on Dreamhost? If you haven't checked in on them in a while, *HEADS UP!*

Dreamhost may be charging you $5/month if your website is on an unsupported PHP version. That’s anything below 8.2.

PHP 8.5 Active Support
PHP 8.4 Active Support
PHP 8.3 Security Updates only
PHP 8.2 Security Updates only

Try to update your PHP to at least 8.4 so you get active support, and your developers can do *even more awesome things*

Continue reading →

🚨 CVE-2026-3826 (CRITICAL): WellChoose IFTOP PHP LFI lets unauthenticated attackers execute remote code. No patch yet. Isolate affected systems & monitor for LFI attempts. Act now to avoid full compromise! radar.offseq.com/threat/cve-20

Continue reading →

Does everyone need to have an immediate opinion on AI? In this week's podcast, Aaron and I discuss why waiting to build deeper knowledge before sharing opinions is not the same as being against new technology. masteringlaravel.io/daily/2026

Continue reading →

Subscribe to #php entries via RSS feed