Does anyone have a phpcs standard "ruleset" to detect stuff like
Use of undefined constant foo - assumed 'foo' (this will throw an Error in a future version of PHP)
in php?
I tried https://github.com/sirbrillig/phpcs-variable-analysis but this did not detect such stuff.