-
-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Transform] Transform paths() to withPaths() on RectorConfigBuilderRe…
…ctor (#5574) * [Transform] Transform paths() to withPaths() on RectorConfigBuilderRector * [Transform] Transform paths() to withPaths() on RectorConfigBuilderRector
- Loading branch information
1 parent
bd37496
commit 5a5ea60
Showing
2 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...Transform/Rector/FileWithoutNamespace/RectorConfigBuilderRector/Fixture/with_path.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->paths([ | ||
__DIR__ . '/src', | ||
]); | ||
$rectorConfig->rule(ReturnUnionTypeRector::class); | ||
}; | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\Config\RectorConfig; | ||
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnUnionTypeRector; | ||
|
||
return \Rector\Config\RectorConfig::configure()->withPaths([ | ||
__DIR__ . '/src', | ||
])->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