Skip to content

Commit

Permalink
Updated Rector to commit c20860d38fabc003dff096168bbfd99479e9242a
Browse files Browse the repository at this point in the history
rectorphp/rector-src@c20860d Bump to PHPStan ^2.1.0 (#6639)
  • Loading branch information
TomasVotruba committed Dec 31, 2024
1 parent 84e1eb5 commit 2c903ab
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 16 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.0.4"
"phpstan/phpstan": "^2.1.0"
},
"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 = '97347fbed99e372bc2a6bd46c30f615c0be12d5f';
public const PACKAGE_VERSION = 'c20860d38fabc003dff096168bbfd99479e9242a';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-12-30 19:22:17';
public const RELEASE_DATE = '2024-12-31 16:58:34';
/**
* @var int
*/
Expand Down
4 changes: 3 additions & 1 deletion src/PhpDocParser/PhpParser/SmartPhpParserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use PHPStan\Parser\SimpleParser;
use PHPStan\Parser\VariadicFunctionsVisitor;
use PHPStan\Parser\VariadicMethodsVisitor;
use PHPStan\Parser\PropertyHookNameVisitor;
/**
* Based on PHPStan-based PHP-Parser best practices:
*
Expand Down Expand Up @@ -37,7 +38,8 @@ private function createPHPStanParser(Parser $parser) : CachedParser
$nameResolver = new NameResolver();
$variadicMethodsVisitor = new VariadicMethodsVisitor();
$variadicFunctionsVisitor = new VariadicFunctionsVisitor();
$simpleParser = new SimpleParser($parser, $nameResolver, $variadicMethodsVisitor, $variadicFunctionsVisitor);
$propertyHookNameVisitor = new PropertyHookNameVisitor();
$simpleParser = new SimpleParser($parser, $nameResolver, $variadicMethodsVisitor, $variadicFunctionsVisitor, $propertyHookNameVisitor);
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 ComposerAutoloaderInit7d398c776aa3bae622a7bc361df38323::getLoader();
return ComposerAutoloaderInit4fb50f2d4af661ecee2245f9ff725125::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 ComposerAutoloaderInit7d398c776aa3bae622a7bc361df38323
class ComposerAutoloaderInit4fb50f2d4af661ecee2245f9ff725125
{
private static $loader;

Expand All @@ -22,17 +22,17 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit7d398c776aa3bae622a7bc361df38323', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit4fb50f2d4af661ecee2245f9ff725125', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit7d398c776aa3bae622a7bc361df38323', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit4fb50f2d4af661ecee2245f9ff725125', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit7d398c776aa3bae622a7bc361df38323::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit4fb50f2d4af661ecee2245f9ff725125::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$filesToLoad = \Composer\Autoload\ComposerStaticInit7d398c776aa3bae622a7bc361df38323::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit4fb50f2d4af661ecee2245f9ff725125::$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 ComposerStaticInit7d398c776aa3bae622a7bc361df38323
class ComposerStaticInit4fb50f2d4af661ecee2245f9ff725125
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
Expand Down Expand Up @@ -2851,9 +2851,9 @@ class ComposerStaticInit7d398c776aa3bae622a7bc361df38323
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit7d398c776aa3bae622a7bc361df38323::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit7d398c776aa3bae622a7bc361df38323::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit7d398c776aa3bae622a7bc361df38323::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit4fb50f2d4af661ecee2245f9ff725125::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit4fb50f2d4af661ecee2245f9ff725125::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit4fb50f2d4af661ecee2245f9ff725125::$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', 'RectorPrefix202412\AutoloadIncluder');
humbug_phpscoper_expose_class('ComposerAutoloaderInit7d398c776aa3bae622a7bc361df38323', 'RectorPrefix202412\ComposerAutoloaderInit7d398c776aa3bae622a7bc361df38323');
humbug_phpscoper_expose_class('ComposerAutoloaderInit4fb50f2d4af661ecee2245f9ff725125', 'RectorPrefix202412\ComposerAutoloaderInit4fb50f2d4af661ecee2245f9ff725125');
humbug_phpscoper_expose_class('Product', 'RectorPrefix202412\Product');
humbug_phpscoper_expose_class('SomeTest', 'RectorPrefix202412\SomeTest');

Expand Down

0 comments on commit 2c903ab

Please sign in to comment.