CodeSniffer currently tries to enforce a space after a cast[2].
Our documentation states: "When type casting, do not use a space within the cast operator or after the cast"[1]
Please update the CodeSniffer configuration to issue the correct warning.
[1] https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP
[2] https://integration.wikimedia.org/ci/job/mwext-Translate-phpcs-HEAD/1291/console
Version: wmf-deployment
Severity: enhancement