CodeIgniter Forums
Discover bugs in code without running it... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3)
+--- Thread: Discover bugs in code without running it... (/showthread.php?tid=80014)



Discover bugs in code without running it... - php_rocs - 09-02-2021

I came across this interesting PHP tool that may be helpful to the CI community. I personally have not used it but that doesn't mean it's not worth a look.
https://phpstan.org/
DESCRIPTION: PHPStan focuses on finding errors in your code without actually running it. It catches whole classes of bugs even before you write tests for the code. It moves PHP closer to compiled languages in the sense that the correctness of each line of the code can be checked before you run the actual line.


RE: Discover bugs in code without running it... - paulbalandan - 09-03-2021

FUN FACT. The framework already uses this wonderful tool. Big Grin