I recommend adding/porting a few snippets from the current leading collection of sane sniffs^^ - https://github.com/php-collective/code-sniffer/blob/master/PhpCollective/Sniffs/PHP/RemoveFunctionAliasSniff.php ( refs https://github.com/cakephp/cakephp/pull/17864#discussion_r1728959307 ) as well as a few other useful ones.