Updated Rector to commit 9ead24f11623dd1741179e3b755713bfd3079b97

9ead24f116 [TypeDeclaration] Skip child class method return parent class on ReturnTypeDeclarationRector (#849)
This commit is contained in:
Tomas Votruba 2021-09-08 12:06:06 +00:00
parent 9067837e02
commit c909d9293e
6 changed files with 20 additions and 20 deletions

View File

@ -79,7 +79,7 @@ final class ClassMethodReturnTypeOverrideGuard
return \false;
}
if ($classMethod->returnType instanceof \PhpParser\Node) {
return \false;
return \true;
}
if ($this->shouldSkipHasChildNoReturn($childrenClassReflections, $classMethod, $scope)) {
return \true;

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '322d2d1f7f9ffbed8b80cc9a1c3c07a1e8f38042';
public const PACKAGE_VERSION = '9ead24f11623dd1741179e3b755713bfd3079b97';
/**
* @var string
*/
public const RELEASE_DATE = '2021-09-08 12:36:33';
public const RELEASE_DATE = '2021-09-08 11:53:28';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20210908\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 ComposerAutoloaderInite9e55ee09a340366e2723aa725c579ad::getLoader();
return ComposerAutoloaderInit2f705bc091f8e0367d6de25af832c383::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInite9e55ee09a340366e2723aa725c579ad
class ComposerAutoloaderInit2f705bc091f8e0367d6de25af832c383
{
private static $loader;
@ -22,15 +22,15 @@ class ComposerAutoloaderInite9e55ee09a340366e2723aa725c579ad
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInite9e55ee09a340366e2723aa725c579ad', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit2f705bc091f8e0367d6de25af832c383', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInite9e55ee09a340366e2723aa725c579ad', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit2f705bc091f8e0367d6de25af832c383', '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\ComposerStaticInite9e55ee09a340366e2723aa725c579ad::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit2f705bc091f8e0367d6de25af832c383::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -42,19 +42,19 @@ class ComposerAutoloaderInite9e55ee09a340366e2723aa725c579ad
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInite9e55ee09a340366e2723aa725c579ad::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit2f705bc091f8e0367d6de25af832c383::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequiree9e55ee09a340366e2723aa725c579ad($fileIdentifier, $file);
composerRequire2f705bc091f8e0367d6de25af832c383($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequiree9e55ee09a340366e2723aa725c579ad($fileIdentifier, $file)
function composerRequire2f705bc091f8e0367d6de25af832c383($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInite9e55ee09a340366e2723aa725c579ad
class ComposerStaticInit2f705bc091f8e0367d6de25af832c383
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
@ -3856,9 +3856,9 @@ class ComposerStaticInite9e55ee09a340366e2723aa725c579ad
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInite9e55ee09a340366e2723aa725c579ad::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInite9e55ee09a340366e2723aa725c579ad::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInite9e55ee09a340366e2723aa725c579ad::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit2f705bc091f8e0367d6de25af832c383::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit2f705bc091f8e0367d6de25af832c383::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit2f705bc091f8e0367d6de25af832c383::$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('RectorPrefix20210908\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInite9e55ee09a340366e2723aa725c579ad', false) && !interface_exists('ComposerAutoloaderInite9e55ee09a340366e2723aa725c579ad', false) && !trait_exists('ComposerAutoloaderInite9e55ee09a340366e2723aa725c579ad', false)) {
spl_autoload_call('RectorPrefix20210908\ComposerAutoloaderInite9e55ee09a340366e2723aa725c579ad');
if (!class_exists('ComposerAutoloaderInit2f705bc091f8e0367d6de25af832c383', false) && !interface_exists('ComposerAutoloaderInit2f705bc091f8e0367d6de25af832c383', false) && !trait_exists('ComposerAutoloaderInit2f705bc091f8e0367d6de25af832c383', false)) {
spl_autoload_call('RectorPrefix20210908\ComposerAutoloaderInit2f705bc091f8e0367d6de25af832c383');
}
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('RectorPrefix20210908\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -3311,9 +3311,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20210908\print_node(...func_get_args());
}
}
if (!function_exists('composerRequiree9e55ee09a340366e2723aa725c579ad')) {
function composerRequiree9e55ee09a340366e2723aa725c579ad() {
return \RectorPrefix20210908\composerRequiree9e55ee09a340366e2723aa725c579ad(...func_get_args());
if (!function_exists('composerRequire2f705bc091f8e0367d6de25af832c383')) {
function composerRequire2f705bc091f8e0367d6de25af832c383() {
return \RectorPrefix20210908\composerRequire2f705bc091f8e0367d6de25af832c383(...func_get_args());
}
}
if (!function_exists('parseArgs')) {