Updated Rector to commit 6b065efef08c34f6e3f69ebd24e24f2418f93007

6b065efef0 Bump php-parser to ^4.19.4 (#6338)
This commit is contained in:
Tomas Votruba 2024-09-29 15:11:48 +00:00
parent 09e6c3f693
commit 3c9b3f922c
11 changed files with 51 additions and 51 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '5a2bd5fd57cf4dfa99153a4c1f33a137f27f7b95'; public const PACKAGE_VERSION = '6b065efef08c34f6e3f69ebd24e24f2418f93007';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-09-29 21:39:22'; public const RELEASE_DATE = '2024-09-29 15:09:35';
/** /**
* @var int * @var int
*/ */

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInit290ac5343a3ebce6a9533656b317295d class ComposerAutoloaderInit7c12491db1a700dd78980ecb6595c088
{ {
private static $loader; private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit290ac5343a3ebce6a9533656b317295d
return self::$loader; return self::$loader;
} }
spl_autoload_register(array('ComposerAutoloaderInit290ac5343a3ebce6a9533656b317295d', 'loadClassLoader'), true, true); spl_autoload_register(array('ComposerAutoloaderInit7c12491db1a700dd78980ecb6595c088', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit290ac5343a3ebce6a9533656b317295d', 'loadClassLoader')); spl_autoload_unregister(array('ComposerAutoloaderInit7c12491db1a700dd78980ecb6595c088', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php'; require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit290ac5343a3ebce6a9533656b317295d::getInitializer($loader)); call_user_func(\Composer\Autoload\ComposerStaticInit7c12491db1a700dd78980ecb6595c088::getInitializer($loader));
$loader->setClassMapAuthoritative(true); $loader->setClassMapAuthoritative(true);
$loader->register(true); $loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit290ac5343a3ebce6a9533656b317295d::$files; $filesToLoad = \Composer\Autoload\ComposerStaticInit7c12491db1a700dd78980ecb6595c088::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) { $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload; namespace Composer\Autoload;
class ComposerStaticInit290ac5343a3ebce6a9533656b317295d class ComposerStaticInit7c12491db1a700dd78980ecb6595c088
{ {
public static $files = array ( public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -2807,9 +2807,9 @@ class ComposerStaticInit290ac5343a3ebce6a9533656b317295d
public static function getInitializer(ClassLoader $loader) public static function getInitializer(ClassLoader $loader)
{ {
return \Closure::bind(function () use ($loader) { return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit290ac5343a3ebce6a9533656b317295d::$prefixLengthsPsr4; $loader->prefixLengthsPsr4 = ComposerStaticInit7c12491db1a700dd78980ecb6595c088::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit290ac5343a3ebce6a9533656b317295d::$prefixDirsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit7c12491db1a700dd78980ecb6595c088::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit290ac5343a3ebce6a9533656b317295d::$classMap; $loader->classMap = ComposerStaticInit7c12491db1a700dd78980ecb6595c088::$classMap;
}, null, ClassLoader::class); }, null, ClassLoader::class);
} }

View File

@ -709,17 +709,17 @@
}, },
{ {
"name": "nikic\/php-parser", "name": "nikic\/php-parser",
"version": "v4.19.2", "version": "v4.19.4",
"version_normalized": "4.19.2.0", "version_normalized": "4.19.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/nikic\/PHP-Parser.git", "url": "https:\/\/github.com\/nikic\/PHP-Parser.git",
"reference": "0ed4c8949a32986043e977dbe14776c14d644c45" "reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https:\/\/api.github.com\/repos\/nikic\/PHP-Parser\/zipball\/0ed4c8949a32986043e977dbe14776c14d644c45", "url": "https:\/\/api.github.com\/repos\/nikic\/PHP-Parser\/zipball\/715f4d25e225bc47b293a8b997fe6ce99bf987d2",
"reference": "0ed4c8949a32986043e977dbe14776c14d644c45", "reference": "715f4d25e225bc47b293a8b997fe6ce99bf987d2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -728,9 +728,9 @@
}, },
"require-dev": { "require-dev": {
"ircmaxell\/php-yacc": "^0.0.7", "ircmaxell\/php-yacc": "^0.0.7",
"phpunit\/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" "phpunit\/phpunit": "^7.0 || ^8.0 || ^9.0"
}, },
"time": "2024-09-17T19:36:00+00:00", "time": "2024-09-29T15:01:53+00:00",
"bin": [ "bin": [
"bin\/php-parse" "bin\/php-parse"
], ],
@ -780,7 +780,7 @@
], ],
"support": { "support": {
"issues": "https:\/\/github.com\/nikic\/PHP-Parser\/issues", "issues": "https:\/\/github.com\/nikic\/PHP-Parser\/issues",
"source": "https:\/\/github.com\/nikic\/PHP-Parser\/tree\/v4.19.2" "source": "https:\/\/github.com\/nikic\/PHP-Parser\/tree\/v4.19.4"
}, },
"install-path": "..\/nikic\/php-parser" "install-path": "..\/nikic\/php-parser"
}, },

File diff suppressed because one or more lines are too long

View File

@ -17,7 +17,7 @@
"ext-tokenizer": "*" "ext-tokenizer": "*"
}, },
"require-dev": { "require-dev": {
"phpunit\/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0", "phpunit\/phpunit": "^7.0 || ^8.0 || ^9.0",
"ircmaxell\/php-yacc": "^0.0.7" "ircmaxell\/php-yacc": "^0.0.7"
}, },
"extra": { "extra": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -609,7 +609,7 @@ abstract class PrettyPrinterAbstract
if (null !== $subNode) { if (null !== $subNode) {
$result .= $extraLeft; $result .= $extraLeft;
$origIndentLevel = $this->indentLevel; $origIndentLevel = $this->indentLevel;
$this->setIndentLevel($this->origTokens->getIndentationBefore($subStartPos) + $indentAdjustment); $this->setIndentLevel(\max($this->origTokens->getIndentationBefore($subStartPos) + $indentAdjustment, 0));
// If it's the same node that was previously in this position, it certainly doesn't // If it's the same node that was previously in this position, it certainly doesn't
// need fixup. It's important to check this here, because our fixup checks are more // need fixup. It's important to check this here, because our fixup checks are more
// conservative than strictly necessary. // conservative than strictly necessary.
@ -692,7 +692,7 @@ abstract class PrettyPrinterAbstract
$itemEndPos = $origArrItem->getEndTokenPos(); $itemEndPos = $origArrItem->getEndTokenPos();
\assert($itemStartPos >= 0 && $itemEndPos >= 0 && $itemStartPos >= $pos); \assert($itemStartPos >= 0 && $itemEndPos >= 0 && $itemStartPos >= $pos);
$origIndentLevel = $this->indentLevel; $origIndentLevel = $this->indentLevel;
$lastElemIndentLevel = $this->origTokens->getIndentationBefore($itemStartPos) + $indentAdjustment; $lastElemIndentLevel = \max($this->origTokens->getIndentationBefore($itemStartPos) + $indentAdjustment, 0);
$this->setIndentLevel($lastElemIndentLevel); $this->setIndentLevel($lastElemIndentLevel);
$comments = $arrItem->getComments(); $comments = $arrItem->getComments();
$origComments = $origArrItem->getComments(); $origComments = $origArrItem->getComments();

View File

@ -30,7 +30,7 @@ if (!function_exists('humbug_phpscoper_expose_class')) {
} }
} }
humbug_phpscoper_expose_class('AutoloadIncluder', 'RectorPrefix202409\AutoloadIncluder'); humbug_phpscoper_expose_class('AutoloadIncluder', 'RectorPrefix202409\AutoloadIncluder');
humbug_phpscoper_expose_class('ComposerAutoloaderInit290ac5343a3ebce6a9533656b317295d', 'RectorPrefix202409\ComposerAutoloaderInit290ac5343a3ebce6a9533656b317295d'); humbug_phpscoper_expose_class('ComposerAutoloaderInit7c12491db1a700dd78980ecb6595c088', 'RectorPrefix202409\ComposerAutoloaderInit7c12491db1a700dd78980ecb6595c088');
humbug_phpscoper_expose_class('Product', 'RectorPrefix202409\Product'); humbug_phpscoper_expose_class('Product', 'RectorPrefix202409\Product');
// Function aliases. For more information see: // Function aliases. For more information see: