forked from rectorphp/rector-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Transform] Transform skip() to withSkip() on RectorConfigBuilderRect…
…or (rectorphp#5575)
- Loading branch information
1 parent
5a5ea60
commit 6679831
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector/Fixture/with_skip.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\Config\RectorConfig; | ||
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnUnionTypeRector; | ||
|
||
return static function (RectorConfig $rectorConfig): void { | ||
$rectorConfig->skip([ | ||
__DIR__ . '/src/migrations', | ||
]); | ||
$rectorConfig->rule(ReturnUnionTypeRector::class); | ||
}; | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\Config\RectorConfig; | ||
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnUnionTypeRector; | ||
|
||
return \Rector\Config\RectorConfig::configure()->withSkip([ | ||
__DIR__ . '/src/migrations', | ||
])->withRules([ReturnUnionTypeRector::class]); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters