Skip to content

Commit

Permalink
Updated Rector to commit 92b4999c34e9fad614aedb1d98d05829dfbdaa2b
Browse files Browse the repository at this point in the history
rectorphp/rector-src@92b4999 Bump to PHPStan ^2.1.1 and remove usage of PropertyHookNameVisitor on SimpleParser (#6649)
  • Loading branch information
TomasVotruba committed Jan 5, 2025
1 parent e20eea9 commit fcafd42
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"require": {
"php": "^7.4|^8.0",
"phpstan/phpstan": "^2.1.0"
"phpstan/phpstan": "^2.1.1"
},
"autoload": {
"files": [
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
4 changes: 1 addition & 3 deletions src/PhpDocParser/PhpParser/SmartPhpParserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
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;
Expand Down Expand Up @@ -38,8 +37,7 @@ private function createPHPStanParser(Parser $parser) : CachedParser
$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 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit4fb50f2d4af661ecee2245f9ff725125::getLoader();
return ComposerAutoloaderInit4349f48e2d711e343a1bf0101d0ae855::getLoader();
10 changes: 5 additions & 5 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit4fb50f2d4af661ecee2245f9ff725125
class ComposerAutoloaderInit4349f48e2d711e343a1bf0101d0ae855
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
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;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit4fb50f2d4af661ecee2245f9ff725125
class ComposerStaticInit4349f48e2d711e343a1bf0101d0ae855
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/installed.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function humbug_phpscoper_expose_class($exposed, $prefixed) {
}
}
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');

Expand Down

0 comments on commit fcafd42

Please sign in to comment.