3 ms·
>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
by brlewis 7y ago
>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.
- francislavoie 7y agohttps://www.exakat.io/ https://www.exakat.io/ https://github.com/phpstan/phpstan https://github.com/phpstan/phpstan https://github.com/phan/phan 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 https://github.com/FriendsOfPhp/PHP-CS-Fixer to clean up code syntax (configurable rules, has good presets).