Skip to content

Commit 7c51b1b

Browse files
committed
[ibexa/rector] Backported Ibexa Rector to 4.6
1 parent 867478a commit 7c51b1b

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

ibexa/rector/4.6/manifest.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"aliases": [],
3+
"bundles": {},
4+
"copy-from-recipe": {
5+
"rector.php": "rector.php"
6+
}
7+
}

ibexa/rector/4.6/rector.php

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
/**
4+
* @copyright Copyright (C) Ibexa AS. All rights reserved.
5+
* @license For full copyright and license information view LICENSE file distributed with this source code.
6+
*/
7+
declare(strict_types=1);
8+
9+
use Ibexa\Contracts\Rector\Sets\IbexaSetList;
10+
use Rector\Config\RectorConfig;
11+
12+
return RectorConfig::configure()
13+
->withPaths(
14+
[
15+
__DIR__ . '/src', // see if it matches your project structure
16+
__DIR__ . '/tests'
17+
]
18+
)
19+
->withSets(
20+
[
21+
IbexaSetList::IBEXA_46->value // rule set for upgrading to Ibexa DXP 4.6
22+
]
23+
);

0 commit comments

Comments
 (0)