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”...
blog.lekoala.be1 min read