Skip to content

Commit

Permalink
TASK: Add TYPO3 12 set
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbelasichon committed May 9, 2022
1 parent cb6f84b commit 8d62a8b
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 1 deletion.
11 changes: 11 additions & 0 deletions config/level/up-to-typo3-12.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Ssch\TYPO3Rector\Set\Typo3LevelSetList;
use Ssch\TYPO3Rector\Set\Typo3SetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([Typo3LevelSetList::UP_TO_TYPO3_11, Typo3SetList::TYPO3_12]);
};
File renamed without changes.
9 changes: 9 additions & 0 deletions config/typo3-12.0.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->import(__DIR__ . '/v12/*');
};
11 changes: 11 additions & 0 deletions config/v12/typo3-120.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Ssch\TYPO3Rector\Rector\v12\v0\MigrateInternalTypeRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->import(__DIR__ . '/../config.php');
$rectorConfig->rule(MigrateInternalTypeRector::class);
};
5 changes: 5 additions & 0 deletions src/Set/Typo3LevelSetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

final class Typo3LevelSetList
{
/**
* @var string
*/
public const UP_TO_TYPO3_12 = __DIR__ . '/../../config/level/up-to-typo3-12.php';

/**
* @var string
*/
Expand Down
7 changes: 6 additions & 1 deletion src/Set/Typo3SetList.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ final class Typo3SetList
/**
* @var string
*/
public const TYPO3_11 = __DIR__ . '/../../config/typo3-11.0.php';
public const TYPO3_11 = __DIR__ . '/../../config/typo3-11.5.php';

/**
* @var string
*/
public const TYPO3_12 = __DIR__ . '/../../config/typo3-12.0.php';

/**
* @var string
Expand Down

0 comments on commit 8d62a8b

Please sign in to comment.