Using assert to fix PHPStan errors
I’ve been using more and more PHPStan recently and it’s been a real pleasure to improve my codebases. Being strict is nice, but sometimes it can also be inconvenient. A lot of built-in methods in php can return false. Or sometimes, you have a “mixed”...
Sep 20, 20241 min read226
