Files
FOSSBilling/rectorTests.php
T
Belle Aerni 45db4910a7 PHP 8.4 prep (#2464)
* Update CI for PHP 8.4

* Update composer deps for PHP 8.4

* Updates

* This is the default mode and this constant causes test failutes

* Explicily install the PDO extensions

* Temporarily downgrade the live tests to PHP 8.3

It would seem that there is some kind of problem with PHP 8.4 in regards to these tests. I believe it is outside of our control however as it installs fine for me with PHP 8.4 under DirectAdmin

* Update to address deprecations

* Make that nullable

* Fixed my typo

* Bump PHPunit to v11

* Also take care of two minor things

* Formatting fix
2024-11-21 23:16:29 -08:00

32 lines
1.0 KiB
PHP

<?php
declare(strict_types=1);
use Rector\Php54\Rector\Array_\LongArrayToShortArrayRector;
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector;
use Rector\Set\ValueObject\SetList;
return RectorConfig::configure()
->withPaths([__DIR__ . '/tests', __DIR__ . '/tests-legacy'])
->withPhpSets()
->withTypeCoverageLevel(2)
->withDeadCodeLevel(25)
->withSets([
PHPUnitSetList::PHPUNIT_110,
SetList::INSTANCEOF,
SetList::PHP_POLYFILLS
])
->withSkip([
JsonThrowOnErrorRector::class,
LongArrayToShortArrayRector::class,
NullToStrictStringFuncCallArgRector::class
])
->withRules([ExplicitNullableParamTypeRector::class])
->withCache('./cache/rector_tests', FileCacheStorage::class)
->withParallel(120, 8, 10);