-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[config] Add import bare support (#2103)
* add import bare support * add phpVersion method
- Loading branch information
1 parent
3986087
commit 61fd4d8
Showing
3 changed files
with
47 additions
and
7 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
rules-tests/DogFood/Rector/Closure/UpgradeRectorConfigRector/Fixture/import_bare.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,23 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DogFood\Rector\Closure\UpgradeRectorConfigRector\Fixture; | ||
|
||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$containerConfigurator->import('any-config.php'); | ||
}; | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\DogFood\Rector\Closure\UpgradeRectorConfigRector\Fixture; | ||
|
||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
||
return static function (\Rector\Config\RectorConfig $rectorConfig): void { | ||
$rectorConfig->import('any-config.php'); | ||
}; | ||
|
||
?> |
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
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