Add PHP 8.5 (#1018)

* Add PHP 8.5 to continuous integration tests

* Use variable

* Add temporary skip

* Allow PHP CS Fixer to run on unsupported PHP versions
This commit is contained in:
Zach Borboa
2025-11-21 09:13:38 -05:00
committed by GitHub
parent 4b36f455dd
commit c46ef2a858
4 changed files with 21 additions and 3 deletions
+7
View File
@@ -4,6 +4,13 @@ $finder = PhpCsFixer\Finder::create()
->in(dirname(__DIR__));
$config = new PhpCsFixer\Config();
// Turn on unsupported PHP versions when the method exists for compatibility
// with older PHP CS Fixer versions.
if (is_callable([$config, 'setUnsupportedPhpVersionAllowed'])) {
$config->setUnsupportedPhpVersionAllowed(true);
}
$config
->setRiskyAllowed(true)
->setRules([