mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-19 14:56:31 +00:00
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:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user