Updated Rector to commit cfccdd090b640d7b63592eca1744e0582db19830

cfccdd090b [CodingStyle] Skip first class callable on UnSpreadOperatorRector (#4041)
This commit is contained in:
Tomas Votruba 2023-06-01 23:56:12 +00:00
parent 8f92523b3a
commit 2e072dd15a
10 changed files with 24 additions and 21 deletions

View File

@ -125,6 +125,9 @@ CODE_SAMPLE
}
private function refactorMethodCall(MethodCall $methodCall, Scope $scope) : ?MethodCall
{
if ($methodCall->isFirstClassCallable()) {
return null;
}
$methodReflection = $this->reflectionResolver->resolveMethodReflectionFromMethodCall($methodCall);
if (!$methodReflection instanceof MethodReflection) {
return null;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '965b5f72045e3a94adf1eab83accafb52bfbe92a';
public const PACKAGE_VERSION = 'cfccdd090b640d7b63592eca1744e0582db19830';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-06-02 05:28:59';
public const RELEASE_DATE = '2023-06-01 23:52:24';
/**
* @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';
return ComposerAutoloaderInit01745356043e4be75950b3ce39d012e4::getLoader();
return ComposerAutoloaderInitfef0b3a99a7c8616cae59afe0c326998::getLoader();

View File

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

View File

@ -1988,12 +1988,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "e276dee74295a7d0cf62c330c64dee663ddc685a"
"reference": "b980109c94df9fac555f52b848161053cf104243"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/e276dee74295a7d0cf62c330c64dee663ddc685a",
"reference": "e276dee74295a7d0cf62c330c64dee663ddc685a",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/b980109c94df9fac555f52b848161053cf104243",
"reference": "b980109c94df9fac555f52b848161053cf104243",
"shasum": ""
},
"require": {
@ -2022,7 +2022,7 @@
"tomasvotruba\/type-coverage": "^0.1",
"tomasvotruba\/unused-public": "^0.1"
},
"time": "2023-05-29T19:31:09+00:00",
"time": "2023-06-01T22:34:28+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7f0656f'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 60db9b4'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main e276dee'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 13f7cc4'));
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7f0656f'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 60db9b4'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main b980109'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 13f7cc4'));
private function __construct()
{
}

View File

@ -730,7 +730,7 @@ Add correct `@var` to ObjectProphecy instances based on `$this->prophesize()` ca
*/
private $propesizedObject;
public function setUp(): void
protected function setUp(): void
{
$this->propesizedObject = $this->prophesize(SomeClass::class);
}

View File

@ -48,7 +48,7 @@ class HelloTest extends TestCase
*/
private $propesizedObject;
public function setUp(): void
protected function setUp(): void
{
$this->propesizedObject = $this->prophesize(SomeClass::class);
}
@ -62,7 +62,7 @@ class HelloTest extends TestCase
*/
private $propesizedObject;
public function setUp(): void
protected function setUp(): void
{
$this->propesizedObject = $this->prophesize(SomeClass::class);
}