Find undefined and unused variables with the PHP Codesniffer static analysis tool.
Another bug fix for a static
variable regression caused by https://github.com/sirbrillig/phpcs-variable-analysis/pull/267.
Mostly a bunch of housekeeping changes internal to the codebase, but this does include a fix for a deprecation notice in PHP 8.2.