Updated Rector to commit 2694671fccfefc21daf1bd17353cd7d42b4af023

2694671fcc LocallyCalledStaticMethodToNonStaticRector with method args (#4233)
This commit is contained in:
Tomas Votruba 2023-06-14 15:32:20 +00:00
parent 12ed8d9e0a
commit 708954a81f
9 changed files with 33 additions and 33 deletions

View File

@ -126,7 +126,7 @@ CODE_SAMPLE
if (!$this->isName($node->name, $classMethodName)) { if (!$this->isName($node->name, $classMethodName)) {
return null; return null;
} }
return new MethodCall(new Variable('this'), $classMethodName); return new MethodCall(new Variable('this'), $classMethodName, $node->args);
}); });
// change static calls to non-static ones, but only if in non-static method!!! // change static calls to non-static ones, but only if in non-static method!!!
$this->visibilityManipulator->makeNonStatic($classMethod); $this->visibilityManipulator->makeNonStatic($classMethod);

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '7753562da21cfa9e31560aedfd94f108fdbae673'; public const PACKAGE_VERSION = '2694671fccfefc21daf1bd17353cd7d42b4af023';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2023-06-14 15:20:46'; public const RELEASE_DATE = '2023-06-14 22:27:39';
/** /**
* @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 ComposerAutoloaderInitbc4a67baa7db7fcd26db8e498806485d::getLoader(); return ComposerAutoloaderInit28ff5c4fe249d08f92863955ee115fdc::getLoader();

View File

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

View File

@ -976,17 +976,17 @@
}, },
{ {
"name": "phpstan\/phpstan", "name": "phpstan\/phpstan",
"version": "1.10.18", "version": "1.10.19",
"version_normalized": "1.10.18.0", "version_normalized": "1.10.19.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/phpstan\/phpstan.git", "url": "https:\/\/github.com\/phpstan\/phpstan.git",
"reference": "52b6416c579663eebdd2f1d97df21971daf3b43f" "reference": "af5a296ff02610c1bfb4ddfac9fd4a08657b9046"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/52b6416c579663eebdd2f1d97df21971daf3b43f", "url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/af5a296ff02610c1bfb4ddfac9fd4a08657b9046",
"reference": "52b6416c579663eebdd2f1d97df21971daf3b43f", "reference": "af5a296ff02610c1bfb4ddfac9fd4a08657b9046",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -995,7 +995,7 @@
"conflict": { "conflict": {
"phpstan\/phpstan-shim": "*" "phpstan\/phpstan-shim": "*"
}, },
"time": "2023-06-07T22:00:43+00:00", "time": "2023-06-14T15:26:58+00:00",
"bin": [ "bin": [
"phpstan", "phpstan",
"phpstan.phar" "phpstan.phar"

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -1,16 +1,16 @@
-----BEGIN PGP SIGNATURE----- -----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEynwsejDI6OEnSoR2UcZzBf/C5cAFAmSA/fQACgkQUcZzBf/C iQIzBAABCgAdFiEEynwsejDI6OEnSoR2UcZzBf/C5cAFAmSJ3CUACgkQUcZzBf/C
5cCwLA/+K91IrL7ggTr2A/gptErLu05s1wUZ0meZfNi+457tcWsspaI67gSiqxIH 5cAA1xAAk6e73+tZEVRVuWOE1u/Q6ZgMynL5cU1yOPhuoig09T6wwWubcD8ckdps
cypjMFL7gvwedB9dxJct+e0HmhYbkyjQJgqadOYHiqiG0LVdxRnd6X2ZIoargOUw QQc1d2lr5+5I+Yaj2tgoqu5r/CqnbpRa5WTSRSPdpIUkcdp54bJcE4WteH+P9wZQ
V4J4+3Avdfp00kUMUoLh1cczSlriT8rrUA7wFahfIalgT2vw7ZxbjusbAgI7cA5Z QiCzxPSK4ZPPbVxLSWp7EjGfbcatf2Obx1KzoDlI21khDw7UaB9ZDISNKdBd96BB
P6T933/Q+mSUd2HN1iZ/kyNxtGhyqb3ZiuW+Cs0lnz2ojhvg79lsmDrEF1LRyRg7 PXsBdqf5+SsWdxH3FiYJbPCHnKTio8gRVF0hH2nV8kFbgp4qolufJRlMdBDYJI0m
Nsn1paL4Uivo8lTheLOVtjLS1G/4Rk3ZJjyuJDnuyI3BMwpD1cLizW+6bs9ydHCx 0dGr3AA/Oya5Vv+qJi8Pn9tBUQPE9JJpvuQCTzzONTNJO7xffoVXgD1loVDvjZkX
pbSticFoEbaSqnKeXOrqS9ci8QnC8zHVYdYi+yBI76Cf9LvORd90TC+sAp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