Skip to content

Commit

Permalink
no need to unprefix the ValueObject inliner, as part of Rector Symfon…
Browse files Browse the repository at this point in the history
…y service configurator
  • Loading branch information
TomasVotruba committed Dec 6, 2021
1 parent 9133c98 commit 785223e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
2 changes: 0 additions & 2 deletions build/target-repository/docs/beyond_php_file_processors.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ All you have to do is using the ChangePackageVersionComposerRector:
use Rector\Composer\Rector\ChangePackageVersionComposerRector;
use Rector\Composer\ValueObject\PackageAndVersion;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\SymfonyPhpConfig\ValueObjectInliner;

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
Expand All @@ -45,7 +44,6 @@ use Rector\Composer\Rector\ReplacePackageAndVersionComposerRector;
use Rector\Composer\ValueObject\PackageAndVersion;
use Rector\Composer\ValueObject\ReplacePackageAndVersion;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\SymfonyPhpConfig\ValueObjectInliner;

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
Expand Down
1 change: 0 additions & 1 deletion preload.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@
require_once __DIR__ . '/vendor/nikic/php-parser/lib/PhpParser/ParserFactory.php';
require_once __DIR__ . '/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php';
require_once __DIR__ . '/vendor/symplify/symfony-php-config/src/Reflection/ArgumentAndParameterFactory.php';
require_once __DIR__ . '/vendor/symplify/symfony-php-config/src/ValueObjectInliner.php';
require_once __DIR__ . '/vendor/symfony/dependency-injection/Loader/Configurator/AbstractConfigurator.php';
require_once __DIR__ . '/vendor/symfony/dependency-injection/Loader/Configurator/ContainerConfigurator.php';
require_once __DIR__ . '/vendor/symfony/contracts/Deprecation/function.php';
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ private function hasConfigureMethodCall(Definition $definition): bool
return false;
}

if ($methodCall[1][0] === []) {
return false;
}

return true;
return $methodCall[1][0] !== [];
}
}

Expand Down
3 changes: 0 additions & 3 deletions utils/compiler/src/PhpScoper/StaticEasyPrefixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ final class StaticEasyPrefixer

// this is public API of a Rector rule
'Symplify\RuleDocGenerator\*',

// for configuring sets with ValueObjectInliner
'Symplify\SymfonyPhpConfig\*',
];

/**
Expand Down

0 comments on commit 785223e

Please sign in to comment.