Skip to content

Commit

Permalink
Merge pull request #22 from netlogix/bugfix/fix-unwanted-refactoring-…
Browse files Browse the repository at this point in the history
…of-callback-definitions
  • Loading branch information
saschanowak authored Feb 1, 2024
2 parents 793eafc + f18faf6 commit 7ee8224
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
];
})();
8 changes: 8 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7ee8224

Please sign in to comment.