News for hackers. Stuff that matters.
Re:PHP in 2019 by brlewis on Wednesday May 15, 2019 @08:10AM (#19918590)
>I assume that these obsolete functions and operators still linger for backward compatibility? If so how do you avoid them?

This. If there isn't a linter that bombs out on those things that used to be standard PHP, modern PHP is a non-starter. There are too many bad examples out there that will make their way into modern code if you let them.

Re:PHP in 2019 by francislavoie on Wednesday May 15, 2019 @02:31PM (#19922311)
https://www.exakat.io/

https://github.com/phpstan/phpstan

https://github.com/phan/phan

Lots of great static analyzers to run in CI and during development to catch all kinds of issues.

Also, https://github.com/FriendsOfPhp/PHP-CS-Fixer to clean up code syntax (configurable rules, has good presets).