Updated Rector to commit 92b4999c34e9fad614aedb1d98d05829dfbdaa2b

92b4999c34 Bump to PHPStan ^2.1.1 and remove usage of PropertyHookNameVisitor on SimpleParser (#6649)
This commit is contained in:
Tomas Votruba 2025-01-05 17:03:03 +00:00
parent e20eea98da
commit fcafd42fb3
8 changed files with 16 additions and 18 deletions

View File

@ -8,7 +8,7 @@
],
"require": {
"php": "^7.4|^8.0",
"phpstan/phpstan": "^2.1.0"
"phpstan/phpstan": "^2.1.1"
},
"autoload": {
"files": [

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '1d078fa4a5e62eee5ff5ef441a212e01c2550a16';
public const PACKAGE_VERSION = '92b4999c34e9fad614aedb1d98d05829dfbdaa2b';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-01-05 13:49:38';
public const RELEASE_DATE = '2025-01-06 00:00:40';
/**
* @var int
*/

View File

@ -7,7 +7,6 @@ use PhpParser\NodeVisitor\NameResolver;
use PhpParser\Parser;
use PhpParser\ParserFactory;
use PHPStan\Parser\CachedParser;
use PHPStan\Parser\PropertyHookNameVisitor;
use PHPStan\Parser\SimpleParser;
use PHPStan\Parser\VariadicFunctionsVisitor;
use PHPStan\Parser\VariadicMethodsVisitor;
@ -38,8 +37,7 @@ final class SmartPhpParserFactory
$nameResolver = new NameResolver();
$variadicMethodsVisitor = new VariadicMethodsVisitor();
$variadicFunctionsVisitor = new VariadicFunctionsVisitor();
$propertyHookNameVisitor = new PropertyHookNameVisitor();
$simpleParser = new SimpleParser($parser, $nameResolver, $variadicMethodsVisitor, $variadicFunctionsVisitor, $propertyHookNameVisitor);
$simpleParser = new SimpleParser($parser, $nameResolver, $variadicMethodsVisitor, $variadicFunctionsVisitor);
return new CachedParser($simpleParser, 1024);
}
}

2
vendor/autoload.php vendored
View File

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

View File

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

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,7 @@ if (!function_exists('humbug_phpscoper_expose_class')) {
}
}
humbug_phpscoper_expose_class('AutoloadIncluder', 'RectorPrefix202501\AutoloadIncluder');
humbug_phpscoper_expose_class('ComposerAutoloaderInit4fb50f2d4af661ecee2245f9ff725125', 'RectorPrefix202501\ComposerAutoloaderInit4fb50f2d4af661ecee2245f9ff725125');
humbug_phpscoper_expose_class('ComposerAutoloaderInit4349f48e2d711e343a1bf0101d0ae855', 'RectorPrefix202501\ComposerAutoloaderInit4349f48e2d711e343a1bf0101d0ae855');
humbug_phpscoper_expose_class('Product', 'RectorPrefix202501\Product');
humbug_phpscoper_expose_class('SomeTest', 'RectorPrefix202501\SomeTest');