mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-01 21:02:54 +09:00
* 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
34 lines
1.1 KiB
PHP
34 lines
1.1 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\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
|
|
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
|
|
use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector;
|
|
use Rector\Set\ValueObject\SetList;
|
|
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
|
|
|
|
return RectorConfig::configure()
|
|
->withPaths([__DIR__ . '/src'])
|
|
->withSkipPath(__DIR__ . '/src/vendor')
|
|
->withSkipPath(__DIR__ . '/src/data/cache')
|
|
->withPhpSets()
|
|
->withTypeCoverageLevel(5)
|
|
->withDeadCodeLevel(25)
|
|
->withSets([
|
|
SetList::INSTANCEOF,
|
|
SetList::PHP_POLYFILLS
|
|
])
|
|
->withSkip([
|
|
JsonThrowOnErrorRector::class,
|
|
LongArrayToShortArrayRector::class,
|
|
NullToStrictStringFuncCallArgRector::class,
|
|
MixedTypeRector::class,
|
|
])
|
|
->withRules([ExplicitNullableParamTypeRector::class])
|
|
->withCache('./cache/rector', FileCacheStorage::class)
|
|
->withParallel(120, 8, 10);
|