Thomas Portelangeblog.lekoala.be·Sep 20, 2024Using assert to fix PHPStan errorsI’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”...34 readsPHP
David Carrdcblogdev.hashnode.dev·Sep 7, 2024Mastering PHPStan: Common Errors and How to Fix ThemPHPStan is a static analysis tool for PHP that focuses on finding bugs in your code without actually running it. By analyzing your codebase, PHPStan can detect potential issues such as type errors, undefined variables, and incorrect method calls, amo...12 likes·637 readsphpstan
Mohamed Kamelmohamedkamel.hashnode.dev·Dec 22, 2023Optimizing Linter Checks with GitHub ActionsLinting is a crucial step in the development process to ensure code quality and adherence to coding standards. However, as projects grow, linting checks can become time-consuming, affecting the overall development workflow. GitHub Actions provides a ...34 readsphp-cs-fixer
Sandip ShresthaforJoBins Engineeringblog.jobins.jp·Mar 31, 2023Level up your Laravel code with PHPStanPHPStan is a static analysis tool that helps developers identify potential bugs and issues in their code before they occur. It scans your whole codebase and looks for both obvious & tricky bugs. Even in those rarely executed if statements that certai...12 likes·504 readsPHP