72 words, 1 min read
⚠️ This post links to an external website. ⚠️
Static analysis is a powerful tool that examines your code without actually running it, catching bugs and type mismatches before they reach production. For PHP developers, PHPStan has become the go-to solution, and Laravel developers often use Larastan - a wrapper that adds Laravel-specific understanding to PHPStan. In this post, I'll share how I'm using PHPStan's type aliases feature to make validation rule typehints more readable and maintainable in our Laravel application.
continue reading on ohdear.app
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.