Updated Rector to commit 6322d7c7c5bf262524b254cb329644cd051f94b2

6322d7c7c5 [automated] Re-Generate Nodes/Rectors Documentation (#3832)
This commit is contained in:
Tomas Votruba 2023-05-14 00:32:54 +00:00
parent 6a4afec13c
commit aceca9ea6e
5 changed files with 14 additions and 19 deletions

View File

@ -1163,9 +1163,6 @@ Remove `sprintf()` wrapper if not needed
{
public function run()
{
- $value = sprintf('%s', 'hi');
+ $value = 'hi';
$welcome = 'hello';
- $value = sprintf('%s', $welcome);
+ $value = $welcome;
@ -1989,8 +1986,6 @@ Changes various implode forms to consistent one
- $itemsAsStrings = implode($items, '|');
+ $itemsAsStrings = implode('', $items);
+ $itemsAsStrings = implode('|', $items);
$itemsAsStrings = implode('|', $items);
}
}
```
@ -4850,13 +4845,13 @@ Changes PHP 4 style constructor to __construct.
### RandomFunctionRector
Changes rand, srand and getrandmax by new mt_* alternatives.
Changes rand, srand, mt_rand and getrandmax to newer alternatives.
- class: [`Rector\Php70\Rector\FuncCall\RandomFunctionRector`](../rules/Php70/Rector/FuncCall/RandomFunctionRector.php)
```diff
-rand();
+mt_rand();
+random_int();
```
<br>

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '7b3612414201f08bb451d15ea3e1b94e4b61a0a8';
public const PACKAGE_VERSION = '6322d7c7c5bf262524b254cb329644cd051f94b2';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-05-14 00:05:02';
public const RELEASE_DATE = '2023-05-14 00:29:07';
/**
* @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 ComposerAutoloaderInitb0b9fa68b690d5f6696269dfaac4d7e6::getLoader();
return ComposerAutoloaderInit8e99939b0e586cc9aed4647170c2a9c9::getLoader();

View File

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