mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 11:33:33 +01:00
Updated Rector to commit 419c4f8e5268854e234b14e62dfc2d90d904951b
419c4f8e52
[automated] Re-Generate Nodes/Rectors Documentation (#3059)
This commit is contained in:
parent
3495067553
commit
cf32f86c20
@ -211,7 +211,7 @@ return static function (RectorConfig $rectorConfig): void {
|
||||
|
||||
### SwapFuncCallArgumentsRector
|
||||
|
||||
Swap arguments in function calls
|
||||
Reorder arguments in function calls
|
||||
|
||||
:wrench: **configure it!**
|
||||
|
||||
@ -225,7 +225,7 @@ use Rector\Config\RectorConfig;
|
||||
return static function (RectorConfig $rectorConfig): void {
|
||||
$rectorConfig->ruleWithConfiguration(
|
||||
SwapFuncCallArgumentsRector::class,
|
||||
[new SwapFuncCallArguments('some_function', [1, 0])]
|
||||
[new SwapFuncCallArguments('some_function', [2, 1, 0])]
|
||||
);
|
||||
};
|
||||
```
|
||||
@ -235,10 +235,10 @@ return static function (RectorConfig $rectorConfig): void {
|
||||
```diff
|
||||
final class SomeClass
|
||||
{
|
||||
public function run($one, $two)
|
||||
public function run()
|
||||
{
|
||||
- return some_function($one, $two);
|
||||
+ return some_function($two, $one);
|
||||
- return some_function('one', 'two', 'three');
|
||||
+ return some_function('three', 'two', 'one');
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -17,12 +17,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '2be958b4e4db947c63777443eafb886274a5c7c7';
|
||||
public const PACKAGE_VERSION = '419c4f8e5268854e234b14e62dfc2d90d904951b';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-11-13 00:44:52';
|
||||
public const RELEASE_DATE = '2022-11-13 00:30:29';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit1eea657efd12a3c39090bb64a356de82::getLoader();
|
||||
return ComposerAutoloaderInit43d24a1e2dbe782abcb240c903c9af73::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit1eea657efd12a3c39090bb64a356de82
|
||||
class ComposerAutoloaderInit43d24a1e2dbe782abcb240c903c9af73
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,19 +22,19 @@ class ComposerAutoloaderInit1eea657efd12a3c39090bb64a356de82
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit1eea657efd12a3c39090bb64a356de82', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit43d24a1e2dbe782abcb240c903c9af73', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit1eea657efd12a3c39090bb64a356de82', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit43d24a1e2dbe782abcb240c903c9af73', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit1eea657efd12a3c39090bb64a356de82::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit43d24a1e2dbe782abcb240c903c9af73::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit1eea657efd12a3c39090bb64a356de82::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit43d24a1e2dbe782abcb240c903c9af73::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire1eea657efd12a3c39090bb64a356de82($fileIdentifier, $file);
|
||||
composerRequire43d24a1e2dbe782abcb240c903c9af73($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -46,7 +46,7 @@ class ComposerAutoloaderInit1eea657efd12a3c39090bb64a356de82
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire1eea657efd12a3c39090bb64a356de82($fileIdentifier, $file)
|
||||
function composerRequire43d24a1e2dbe782abcb240c903c9af73($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit1eea657efd12a3c39090bb64a356de82
|
||||
class ComposerStaticInit43d24a1e2dbe782abcb240c903c9af73
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3054,9 +3054,9 @@ class ComposerStaticInit1eea657efd12a3c39090bb64a356de82
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1eea657efd12a3c39090bb64a356de82::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit1eea657efd12a3c39090bb64a356de82::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit1eea657efd12a3c39090bb64a356de82::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit43d24a1e2dbe782abcb240c903c9af73::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit43d24a1e2dbe782abcb240c903c9af73::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit43d24a1e2dbe782abcb240c903c9af73::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user