mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
drop symfony\process for single call (#4735)
This commit is contained in:
parent
79f3611dc9
commit
3d721e8ca8
@ -29,7 +29,6 @@
|
||||
"symfony/dependency-injection": "^4.4.8|^5.1",
|
||||
"symfony/finder": "^4.4.8|^5.1",
|
||||
"symfony/http-kernel": "^4.4.8|^5.1",
|
||||
"symfony/process": "^4.4.8|^5.1",
|
||||
"symplify/autowire-array-parameter": "dev-master",
|
||||
"symplify/skipper": "dev-master",
|
||||
"symplify/composer-json-manipulator": "dev-master",
|
||||
|
@ -8,7 +8,6 @@ use Rector\RectorGenerator\FileSystem\JsonFileSystem;
|
||||
use Rector\RectorGenerator\ValueObject\Package;
|
||||
use Rector\RectorGenerator\ValueObject\RectorRecipe;
|
||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
final class ComposerPackageAutoloadUpdater
|
||||
{
|
||||
@ -110,7 +109,7 @@ final class ComposerPackageAutoloadUpdater
|
||||
|
||||
private function rebuildAutoload(): void
|
||||
{
|
||||
$composerDumpProcess = new Process(['composer', 'dump']);
|
||||
$composerDumpProcess->run();
|
||||
// note: do not use shell_exec, this is only effective solution for better DX
|
||||
shell_exec('composer dump');
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,6 @@ use PhpParser\Node\Expr\New_;
|
||||
use PhpParser\Node\Expr\StaticCall;
|
||||
use PhpParser\Node\Name;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Symfony\Component\Process\ProcessBuilder;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
|
||||
@ -48,7 +47,7 @@ final class ProcessBuilderInstanceRector extends AbstractRector
|
||||
return null;
|
||||
}
|
||||
|
||||
if (! $this->isName($node->class, ProcessBuilder::class)) {
|
||||
if (! $this->isName($node->class, 'Symfony\Component\Process\ProcessBuilder')) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user