Skip to content

Commit

Permalink
[TASK] Do not import TYPO3 namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi committed May 16, 2024
1 parent f8394ac commit ec5c8dd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions config/v13/introduce-capabilities-bit-set.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\ClassConstFetch\RenameClassConstFetchRector;
use Rector\Renaming\ValueObject\RenameClassAndConstFetch;
use TYPO3\CMS\Core\Resource\Capabilities;
use TYPO3\CMS\Core\Resource\ResourceStorageInterface;

return static function (RectorConfig $rectorConfig): void {
// constants only have been moved into new Capabilities class
Expand All @@ -18,9 +16,9 @@
];

$configuration = array_map(static fn ($capability) => new RenameClassAndConstFetch(
ResourceStorageInterface::class,
'TYPO3\CMS\Core\Resource\ResourceStorageInterface',
$capability,
Capabilities::class,
'TYPO3\CMS\Core\Resource\Capabilities',
$capability
), $capabilities);

Expand Down

0 comments on commit ec5c8dd

Please sign in to comment.