r/programminghorror • • Jun 11 '26

PHP PHP#

Post image
215 Upvotes

32 comments sorted by

View all comments

Show parent comment

6

u/Sacaldur Jun 11 '26

In the PHP project I worked on I did inteoduce PHPStan (static code analysis tool) with an integration into the IDE and brought it up to level 8 (out of 10, the higher the level the stricter the checks). I still prefer other languages, and there were still a few quirks, but it was fine working with it like that, since it ensured that type hints where present basically everywhere and also that variables where used according to the types.