Updated Rector to commit 38897821c8176689dbe60f649b02669c7ee37253

38897821c8 Add test fixture for OptionalParametersAfterRequiredRector (#4541)
This commit is contained in:
Tomas Votruba 2023-07-19 11:23:09 +00:00
parent bff94f9200
commit 3c068fde65
5 changed files with 15 additions and 14 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'ceab6d71bb3436c1c613651a12af55954ab3f7bf';
public const PACKAGE_VERSION = '38897821c8176689dbe60f649b02669c7ee37253';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-07-19 12:04:44';
public const RELEASE_DATE = '2023-07-19 12:18:49';
/**
* @var int
*/

View File

@ -5,6 +5,7 @@ namespace Rector\Core\Rector;
use PhpParser\Node;
use PhpParser\Node\Arg;
use PhpParser\Node\Stmt;
use PhpParser\Node\Stmt\InlineHTML;
use PhpParser\Node\Stmt\Nop;
use PhpParser\NodeTraverser;
@ -90,7 +91,7 @@ CODE_SAMPLE;
*/
protected $file;
/**
* @var \Rector\Core\Rector\Stmt|null
* @var \PhpParser\Node\Stmt|null
*/
protected $currentStmt;
/**
@ -342,7 +343,7 @@ CODE_SAMPLE;
$nodeClass = \get_class($node);
foreach ($this->getNodeTypes() as $nodeType) {
if (!\is_a($nodeClass, $nodeType, \true)) {
if ($node instanceof \Rector\Core\Rector\Stmt) {
if ($node instanceof Stmt) {
$this->currentStmt = $node;
}
continue;

2
vendor/autoload.php vendored
View File

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

View File

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