mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 08:50:50 +00:00
Updated Rector to commit 4795d003614d98b04c3fce209e855f18ac48ed09
4795d00361
[Renaming] Skip pointless names in RenameForeachValueVariableToMatchMethodCallReturnTypeRector (#5188)
This commit is contained in:
parent
ac6d3dea06
commit
45987b0066
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
|
@ -1743,12 +1743,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
|
||||
"reference": "850b492944c51824d9cb1d729db38dd3beaef1a5"
|
||||
"reference": "3e960af992626719d4370dcede16a104a12acf64"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/850b492944c51824d9cb1d729db38dd3beaef1a5",
|
||||
"reference": "850b492944c51824d9cb1d729db38dd3beaef1a5",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/3e960af992626719d4370dcede16a104a12acf64",
|
||||
"reference": "3e960af992626719d4370dcede16a104a12acf64",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1775,7 +1775,7 @@
|
|||
"tomasvotruba\/unused-public": "^0.2",
|
||||
"tracy\/tracy": "^2.10"
|
||||
},
|
||||
"time": "2023-09-29T13:19:15+00:00",
|
||||
"time": "2023-10-18T15:35:32+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
|
@ -237,7 +237,7 @@ class XdebugHandler
|
|||
$cmd = '"' . $cmd . '"';
|
||||
}
|
||||
}
|
||||
$process = \proc_open(\is_array($cmd) ? \implode(' ', $cmd) : $cmd, [], $pipes);
|
||||
$process = \proc_open(\is_array($cmd) ? \implode(' ', \array_map('escapeshellarg', $cmd)) : $cmd, [], $pipes);
|
||||
if (\is_resource($process)) {
|
||||
$exitCode = \proc_close($process);
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
|
|||
*/
|
||||
final class GeneratedConfig
|
||||
{
|
||||
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main a846e7f'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 850b492'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 1b32010'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 873458c'));
|
||||
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main a846e7f'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main 3e960af'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 1b32010'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 873458c'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -934,8 +934,8 @@ Change array command argument on proc_open to implode spaced string
|
|||
- class: [`Rector\DowngradePhp74\Rector\FuncCall\DowngradeProcOpenArrayCommandArgRector`](../rules/DowngradePhp74/Rector/FuncCall/DowngradeProcOpenArrayCommandArgRector.php)
|
||||
|
||||
```diff
|
||||
-return proc_open($command, $descriptorspec, $pipes);
|
||||
+return proc_open(is_array($command) ? implode(' ', $command) : $command, $descriptorspec, $pipes);
|
||||
-return proc_open($command, $descriptorspec, $pipes, null, null, ['suppress_errors' => true]);
|
||||
+return proc_open(is_array($command) ? implode(' ', array_map('escapeshellarg', $command)) : $command, $descriptorspec, $pipes, null, null, ['suppress_errors' => true]);
|
||||
```
|
||||
|
||||
<br>
|
||||
|
|
|
@ -19,10 +19,10 @@ final class DowngradeProcOpenArrayCommandArgRector extends AbstractRector
|
|||
public function getRuleDefinition() : RuleDefinition
|
||||
{
|
||||
return new RuleDefinition('Change array command argument on proc_open to implode spaced string', [new CodeSample(<<<'CODE_SAMPLE'
|
||||
return proc_open($command, $descriptorspec, $pipes);
|
||||
return proc_open($command, $descriptorspec, $pipes, null, null, ['suppress_errors' => true]);
|
||||
CODE_SAMPLE
|
||||
, <<<'CODE_SAMPLE'
|
||||
return proc_open(is_array($command) ? implode(' ', $command) : $command, $descriptorspec, $pipes);
|
||||
return proc_open(is_array($command) ? implode(' ', array_map('escapeshellarg', $command)) : $command, $descriptorspec, $pipes, null, null, ['suppress_errors' => true]);
|
||||
CODE_SAMPLE
|
||||
)]);
|
||||
}
|
||||
|
@ -50,7 +50,8 @@ CODE_SAMPLE
|
|||
return null;
|
||||
}
|
||||
$isArrayFuncCall = $this->nodeFactory->createFuncCall('is_array', [new Arg($firstArg->value)]);
|
||||
$implodeFuncCall = $this->nodeFactory->createFuncCall('implode', [new String_(' '), $firstArg->value]);
|
||||
$value = $this->nodeFactory->createFuncCall('array_map', [new Arg(new String_('escapeshellarg')), new Arg($firstArg->value)]);
|
||||
$implodeFuncCall = $this->nodeFactory->createFuncCall('implode', [new String_(' '), $value]);
|
||||
$firstArg->value = new Ternary($isArrayFuncCall, $implodeFuncCall, $firstArg->value);
|
||||
return $node;
|
||||
}
|
||||
|
|
2
vendor/symfony/console/Terminal.php
vendored
2
vendor/symfony/console/Terminal.php
vendored
|
@ -193,7 +193,7 @@ class Terminal
|
|||
}
|
||||
$descriptorspec = [1 => ['pipe', 'w'], 2 => ['pipe', 'w']];
|
||||
$cp = \function_exists('sapi_windows_cp_set') ? \sapi_windows_cp_get() : 0;
|
||||
$process = \proc_open(\is_array($command) ? \implode(' ', $command) : $command, $descriptorspec, $pipes, null, null, ['suppress_errors' => \true]);
|
||||
$process = \proc_open(\is_array($command) ? \implode(' ', \array_map('escapeshellarg', $command)) : $command, $descriptorspec, $pipes, null, null, ['suppress_errors' => \true]);
|
||||
if (!\is_resource($process)) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user