Updated Rector to commit 8c6a966741ca3f75c0e1f563b8c951f073c323be

8c6a966741 [TypeDeclaration] Include trait in AddVoidReturnTypeWhereNoReturnRector (#1582)
This commit is contained in:
Tomas Votruba 2021-12-27 19:07:28 +00:00
parent feb1acabfc
commit 27cabcdf40
6 changed files with 19 additions and 23 deletions

View File

@ -16,7 +16,6 @@ use PhpParser\Node\Stmt\Interface_;
use PhpParser\Node\Stmt\Return_;
use PhpParser\Node\Stmt\Switch_;
use PhpParser\Node\Stmt\Throw_;
use PhpParser\Node\Stmt\Trait_;
use PhpParser\Node\Stmt\TryCatch;
use Rector\Core\PhpParser\Node\BetterNodeFinder;
final class SilentVoidResolver
@ -39,9 +38,6 @@ final class SilentVoidResolver
if ($classLike instanceof \PhpParser\Node\Stmt\Interface_) {
return \false;
}
if ($classLike instanceof \PhpParser\Node\Stmt\Trait_) {
return \false;
}
if ($this->hasNeverType($functionLike)) {
return \false;
}

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = 'cb8fe8474ce23ada4e7bd7a0b3b4625050bda919';
public const PACKAGE_VERSION = '8c6a966741ca3f75c0e1f563b8c951f073c323be';
/**
* @var string
*/
public const RELEASE_DATE = '2021-12-27 18:54:40';
public const RELEASE_DATE = '2021-12-27 18:56:17';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20211227\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitf1def729638617794639424747854dc9::getLoader();
return ComposerAutoloaderInitf8dbcf00b01e8df797998594abb63b67::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitf1def729638617794639424747854dc9
class ComposerAutoloaderInitf8dbcf00b01e8df797998594abb63b67
{
private static $loader;
@ -22,15 +22,15 @@ class ComposerAutoloaderInitf1def729638617794639424747854dc9
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitf1def729638617794639424747854dc9', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitf8dbcf00b01e8df797998594abb63b67', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInitf1def729638617794639424747854dc9', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitf8dbcf00b01e8df797998594abb63b67', '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\ComposerStaticInitf1def729638617794639424747854dc9::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitf8dbcf00b01e8df797998594abb63b67::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -42,12 +42,12 @@ class ComposerAutoloaderInitf1def729638617794639424747854dc9
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitf1def729638617794639424747854dc9::$files;
$includeFiles = Composer\Autoload\ComposerStaticInitf8dbcf00b01e8df797998594abb63b67::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequiref1def729638617794639424747854dc9($fileIdentifier, $file);
composerRequiref8dbcf00b01e8df797998594abb63b67($fileIdentifier, $file);
}
return $loader;
@ -59,7 +59,7 @@ class ComposerAutoloaderInitf1def729638617794639424747854dc9
* @param string $file
* @return void
*/
function composerRequiref1def729638617794639424747854dc9($fileIdentifier, $file)
function composerRequiref8dbcf00b01e8df797998594abb63b67($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInitf1def729638617794639424747854dc9
class ComposerStaticInitf8dbcf00b01e8df797998594abb63b67
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
@ -3842,9 +3842,9 @@ class ComposerStaticInitf1def729638617794639424747854dc9
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitf1def729638617794639424747854dc9::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitf1def729638617794639424747854dc9::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitf1def729638617794639424747854dc9::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitf8dbcf00b01e8df797998594abb63b67::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitf8dbcf00b01e8df797998594abb63b67::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitf8dbcf00b01e8df797998594abb63b67::$classMap;
}, null, ClassLoader::class);
}

View File

@ -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('RectorPrefix20211227\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInitf1def729638617794639424747854dc9', false) && !interface_exists('ComposerAutoloaderInitf1def729638617794639424747854dc9', false) && !trait_exists('ComposerAutoloaderInitf1def729638617794639424747854dc9', false)) {
spl_autoload_call('RectorPrefix20211227\ComposerAutoloaderInitf1def729638617794639424747854dc9');
if (!class_exists('ComposerAutoloaderInitf8dbcf00b01e8df797998594abb63b67', false) && !interface_exists('ComposerAutoloaderInitf8dbcf00b01e8df797998594abb63b67', false) && !trait_exists('ComposerAutoloaderInitf8dbcf00b01e8df797998594abb63b67', false)) {
spl_autoload_call('RectorPrefix20211227\ComposerAutoloaderInitf8dbcf00b01e8df797998594abb63b67');
}
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('RectorPrefix20211227\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -78,9 +78,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20211227\print_node(...func_get_args());
}
}
if (!function_exists('composerRequiref1def729638617794639424747854dc9')) {
function composerRequiref1def729638617794639424747854dc9() {
return \RectorPrefix20211227\composerRequiref1def729638617794639424747854dc9(...func_get_args());
if (!function_exists('composerRequiref8dbcf00b01e8df797998594abb63b67')) {
function composerRequiref8dbcf00b01e8df797998594abb63b67() {
return \RectorPrefix20211227\composerRequiref8dbcf00b01e8df797998594abb63b67(...func_get_args());
}
}
if (!function_exists('scanPath')) {