Updated Rector to commit 69c4ca8aaffd3340d8c9011b52f16189d15778f7

69c4ca8aaf [TypeDeclaration] Skip crash Undefined property: PhpParser\Node\Stmt\Enum_:: on AddParamTypeDeclarationRector (#3272)
This commit is contained in:
Tomas Votruba 2023-01-11 09:15:59 +00:00
parent 2662858a47
commit 2494cc52a4
7 changed files with 17 additions and 18 deletions

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit5d07e221a6769defc913497899811691::getLoader();
return ComposerAutoloaderInit2545e570bb6028001da432430471858d::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit5d07e221a6769defc913497899811691
class ComposerAutoloaderInit2545e570bb6028001da432430471858d
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit5d07e221a6769defc913497899811691
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit5d07e221a6769defc913497899811691', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit2545e570bb6028001da432430471858d', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit5d07e221a6769defc913497899811691', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit2545e570bb6028001da432430471858d', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit5d07e221a6769defc913497899811691::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit2545e570bb6028001da432430471858d::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit5d07e221a6769defc913497899811691::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit2545e570bb6028001da432430471858d::$files;
$requireFile = static function ($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 ComposerStaticInit5d07e221a6769defc913497899811691
class ComposerStaticInit2545e570bb6028001da432430471858d
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3064,9 +3064,9 @@ class ComposerStaticInit5d07e221a6769defc913497899811691
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit5d07e221a6769defc913497899811691::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit5d07e221a6769defc913497899811691::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit5d07e221a6769defc913497899811691::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit2545e570bb6028001da432430471858d::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit2545e570bb6028001da432430471858d::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit2545e570bb6028001da432430471858d::$classMap;
}, null, ClassLoader::class);
}

View File

@ -2053,12 +2053,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "97cab8de4f7c6cd2b1006e3394409a7c98425bde"
"reference": "2cfc0a554e0e5e56713a824f66d2322e7bd6eca7"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/97cab8de4f7c6cd2b1006e3394409a7c98425bde",
"reference": "97cab8de4f7c6cd2b1006e3394409a7c98425bde",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/2cfc0a554e0e5e56713a824f66d2322e7bd6eca7",
"reference": "2cfc0a554e0e5e56713a824f66d2322e7bd6eca7",
"shasum": ""
},
"require": {
@ -2084,7 +2084,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2023-01-05T09:34:47+00:00",
"time": "2023-01-11T08:23:06+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

View File

@ -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/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f0c3c11'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 6cf8d9d'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9ea5f62'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 97cab8d'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3b132c1'));
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f0c3c11'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 6cf8d9d'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9ea5f62'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 2cfc0a5'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3b132c1'));
private function __construct()
{
}

View File

@ -7,7 +7,6 @@ use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\ClassMethod;
use PHPStan\PhpDocParser\Ast\PhpDoc\GenericTagValueNode;
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
use Rector\Core\Exception\ShouldNotHappenException;
final class DataProviderClassMethodFinder
{
/**
@ -29,7 +28,7 @@ final class DataProviderClassMethodFinder
foreach ($dataProviderMethodNames as $dataProviderMethodName) {
$dataProviderClassMethod = $class->getMethod($dataProviderMethodName);
if (!$dataProviderClassMethod instanceof ClassMethod) {
throw new ShouldNotHappenException();
continue;
}
$dataProviderClassMethods[] = $dataProviderClassMethod;
}