You can use static code checking tools like Vimeo/Psalm and Phpstan. These tools statically checks your code finds inconsistencies, and potential variable, class misuses.
Definitely you should check stitcher.io for recent developments as well as phptherightway.com