Bug #25398
closedUpdate PHPCS / PHPCompatibility dependencies and fix CI
0%
Description
Not long after we updated the PHPCS house of cards in #24295, by pinning the PHPCompatibility library to a specific commit because of its decision to drop support for the version of PHPCS we were on, etc, etc... it broke.
It seems that since the end of March our PHPCS jobs have been reporting green while only outputting errors like the following and not actually scanning the files:
ERROR: Referenced sniff "PHPCompatibility" does not exist. ERROR: Referenced sniff "PHPCompatibility" does not exist. ERROR: Referenced sniff "PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated" does not exist. ERROR: Referenced sniff "PHPCompatibility.FunctionUse.NewFunctions.stream_set_chunk_sizeFound" does not exist. ERROR: Referenced sniff "PHPCompatibility.Constants.RemovedConstants.mcrypt_dev_urandomDeprecatedRemoved" does not exist. ERROR: Referenced sniff "PHPCompatibility.Extensions.RemovedExtensions.mcryptDeprecatedRemoved" does not exist. ERROR: Referenced sniff "PHPCompatibility.FunctionUse.RemovedFunctions.mcrypt_create_ivDeprecatedRemoved" does not exist. ERROR: Referenced sniff "PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound" does not exist. ......
Since then, the PHPCompatibility package has a 10.0-alpha release that is actually pinnable in composer.json, so we can update and make everything more official. I've pushed up a branch commit that updates all of these related dependencies: https://github.com/cuny-academic-commons/cac/commit/9cc8f31cf6bd7a7dad0204600ff782fed3b2d113
There are 49 new PHPCS errors, all PHPCompatibility related, that I'm going to work through. I don't think anything is critical. Once I have them passing, I'll merge to the 2.7.x branch and describe the findings and fixes here.