diff --git a/ext_localconf.php b/ext_localconf.php index 30e1f94..f7cef8f 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -20,5 +20,8 @@ ] ], ]; - $GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['defaultFilterCallbacks'][GeneratedFileNamesFilter::class] = GeneratedFileNamesFilter::filterGeneratedFiles(...); + $GLOBALS['TYPO3_CONF_VARS']['SYS']['fal']['defaultFilterCallbacks'][GeneratedFileNamesFilter::class] = [ + GeneratedFileNamesFilter::class, + 'filterGeneratedFiles' + ]; })(); diff --git a/rector.php b/rector.php index f80890b..8f4ca9b 100644 --- a/rector.php +++ b/rector.php @@ -2,10 +2,12 @@ declare(strict_types=1); +use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector; use Rector\Config\RectorConfig; use Rector\Core\Configuration\Option; use Rector\Core\ValueObject\PhpVersion; use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector; +use Rector\Php81\Rector\Array_\FirstClassCallableRector; use Rector\PHPUnit\Set\PHPUnitLevelSetList; use Rector\PostRector\Rector\NameImportingPostRector; use Rector\Set\ValueObject\LevelSetList; @@ -96,6 +98,12 @@ $rectorConfig->skip([ // PHP AddLiteralSeparatorToNumberRector::class, + FirstClassCallableRector::class => [ + 'ext_localconf.php', + ], + CallableThisArrayToAnonymousFunctionRector::class => [ + 'ext_localconf.php', + ], // TYPO3 // @see https://github.com/sabbelasichon/typo3-rector/issues/2536