mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 08:50:50 +00:00
Updated Rector to commit edcd91a29f
edcd91a29f
[TypeDeclaration] Skip return inside array_map on ArrayShapeFromConstantArrayReturnRector (#1977)
This commit is contained in:
parent
effc4a97bb
commit
fd5c465b5d
|
@ -18,6 +18,7 @@ use Rector\Parallel\Command\WorkerCommandLineFactory;
|
|||
use Rector\Parallel\ValueObject\Bridge;
|
||||
use RectorPrefix20220329\Symfony\Component\Console\Command\Command;
|
||||
use RectorPrefix20220329\Symfony\Component\Console\Input\InputInterface;
|
||||
use RectorPrefix20220329\Symplify\EasyParallel\Contract\SerializableInterface;
|
||||
use RectorPrefix20220329\Symplify\EasyParallel\Enum\Action;
|
||||
use RectorPrefix20220329\Symplify\EasyParallel\Enum\Content;
|
||||
use RectorPrefix20220329\Symplify\EasyParallel\Enum\ReactCommand;
|
||||
|
@ -61,7 +62,7 @@ final class ParallelFileProcessor
|
|||
}
|
||||
/**
|
||||
* @param callable(int $stepCount): void $postFileCallback Used for progress bar jump
|
||||
* @return mixed[]
|
||||
* @return array{file_diffs: SerializableInterface[], system_errors: SerializableInterface[], system_errors_count: int}
|
||||
*/
|
||||
public function process(\RectorPrefix20220329\Symplify\EasyParallel\ValueObject\Schedule $schedule, string $mainScript, callable $postFileCallback, \RectorPrefix20220329\Symfony\Component\Console\Input\InputInterface $input) : array
|
||||
{
|
||||
|
|
|
@ -85,7 +85,7 @@ CODE_SAMPLE
|
|||
public function refactor(\PhpParser\Node $node) : ?\PhpParser\Node
|
||||
{
|
||||
/** @var Return_[] $returns */
|
||||
$returns = $this->betterNodeFinder->findInstanceOf($node, \PhpParser\Node\Stmt\Return_::class);
|
||||
$returns = $this->betterNodeFinder->findInstancesOfInFunctionLikeScoped($node, \PhpParser\Node\Stmt\Return_::class);
|
||||
// exact one shape only
|
||||
if (\count($returns) !== 1) {
|
||||
return null;
|
||||
|
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '15c93b0b718cffd538e7ae1a05568a4ffa721d9a';
|
||||
public const PACKAGE_VERSION = 'edcd91a29f7db89d0e478f6028a9d750317a1b42';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-03-29 17:00:08';
|
||||
public const RELEASE_DATE = '2022-03-29 10:08:37';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20220329\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
@ -4,4 +4,4 @@
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit3c20473cf43b676d81f479a4927a3682::getLoader();
|
||||
return ComposerAutoloaderInit444f0dcd9649235915afc4278de03a55::getLoader();
|
||||
|
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit3c20473cf43b676d81f479a4927a3682
|
||||
class ComposerAutoloaderInit444f0dcd9649235915afc4278de03a55
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,15 +22,15 @@ class ComposerAutoloaderInit3c20473cf43b676d81f479a4927a3682
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit3c20473cf43b676d81f479a4927a3682', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit444f0dcd9649235915afc4278de03a55', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit3c20473cf43b676d81f479a4927a3682', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit444f0dcd9649235915afc4278de03a55', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit3c20473cf43b676d81f479a4927a3682::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit444f0dcd9649235915afc4278de03a55::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
|
@ -42,12 +42,12 @@ class ComposerAutoloaderInit3c20473cf43b676d81f479a4927a3682
|
|||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit3c20473cf43b676d81f479a4927a3682::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit444f0dcd9649235915afc4278de03a55::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire3c20473cf43b676d81f479a4927a3682($fileIdentifier, $file);
|
||||
composerRequire444f0dcd9649235915afc4278de03a55($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -59,7 +59,7 @@ class ComposerAutoloaderInit3c20473cf43b676d81f479a4927a3682
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire3c20473cf43b676d81f479a4927a3682($fileIdentifier, $file)
|
||||
function composerRequire444f0dcd9649235915afc4278de03a55($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit3c20473cf43b676d81f479a4927a3682
|
||||
class ComposerStaticInit444f0dcd9649235915afc4278de03a55
|
||||
{
|
||||
public static $files = array (
|
||||
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
||||
|
@ -3841,9 +3841,9 @@ class ComposerStaticInit3c20473cf43b676d81f479a4927a3682
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit3c20473cf43b676d81f479a4927a3682::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit3c20473cf43b676d81f479a4927a3682::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit3c20473cf43b676d81f479a4927a3682::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit444f0dcd9649235915afc4278de03a55::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit444f0dcd9649235915afc4278de03a55::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit444f0dcd9649235915afc4278de03a55::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
|
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
|||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20220329\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit3c20473cf43b676d81f479a4927a3682', false) && !interface_exists('ComposerAutoloaderInit3c20473cf43b676d81f479a4927a3682', false) && !trait_exists('ComposerAutoloaderInit3c20473cf43b676d81f479a4927a3682', false)) {
|
||||
spl_autoload_call('RectorPrefix20220329\ComposerAutoloaderInit3c20473cf43b676d81f479a4927a3682');
|
||||
if (!class_exists('ComposerAutoloaderInit444f0dcd9649235915afc4278de03a55', false) && !interface_exists('ComposerAutoloaderInit444f0dcd9649235915afc4278de03a55', false) && !trait_exists('ComposerAutoloaderInit444f0dcd9649235915afc4278de03a55', false)) {
|
||||
spl_autoload_call('RectorPrefix20220329\ComposerAutoloaderInit444f0dcd9649235915afc4278de03a55');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20220329\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
|
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20220329\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire3c20473cf43b676d81f479a4927a3682')) {
|
||||
function composerRequire3c20473cf43b676d81f479a4927a3682() {
|
||||
return \RectorPrefix20220329\composerRequire3c20473cf43b676d81f479a4927a3682(...func_get_args());
|
||||
if (!function_exists('composerRequire444f0dcd9649235915afc4278de03a55')) {
|
||||
function composerRequire444f0dcd9649235915afc4278de03a55() {
|
||||
return \RectorPrefix20220329\composerRequire444f0dcd9649235915afc4278de03a55(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user