Skip to content

Commit fc230fd

Browse files
committed
Updated Rector to commit dffddb244ffe016e94446f00a1ac61daac900ca6
rectorphp/rector-src@dffddb2 Fix grammar in user-facing exception (#3379)
1 parent ebd356e commit fc230fd

File tree

7 files changed

+20
-40
lines changed

7 files changed

+20
-40
lines changed

vendor/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222

2323
require_once __DIR__ . '/composer/autoload_real.php';
2424

25-
return ComposerAutoloaderInit8c0d982f7669f963a38f0bb4143cca40::getLoader();
25+
return ComposerAutoloaderInitea4756fe54e6b2eb6dba86dfa54e1a9f::getLoader();

vendor/composer/autoload_real.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// autoload_real.php @generated by Composer
44

5-
class ComposerAutoloaderInit8c0d982f7669f963a38f0bb4143cca40
5+
class ComposerAutoloaderInitea4756fe54e6b2eb6dba86dfa54e1a9f
66
{
77
private static $loader;
88

@@ -22,17 +22,17 @@ public static function getLoader()
2222
return self::$loader;
2323
}
2424

25-
spl_autoload_register(array('ComposerAutoloaderInit8c0d982f7669f963a38f0bb4143cca40', 'loadClassLoader'), true, true);
25+
spl_autoload_register(array('ComposerAutoloaderInitea4756fe54e6b2eb6dba86dfa54e1a9f', 'loadClassLoader'), true, true);
2626
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
27-
spl_autoload_unregister(array('ComposerAutoloaderInit8c0d982f7669f963a38f0bb4143cca40', 'loadClassLoader'));
27+
spl_autoload_unregister(array('ComposerAutoloaderInitea4756fe54e6b2eb6dba86dfa54e1a9f', 'loadClassLoader'));
2828

2929
require __DIR__ . '/autoload_static.php';
30-
call_user_func(\Composer\Autoload\ComposerStaticInit8c0d982f7669f963a38f0bb4143cca40::getInitializer($loader));
30+
call_user_func(\Composer\Autoload\ComposerStaticInitea4756fe54e6b2eb6dba86dfa54e1a9f::getInitializer($loader));
3131

3232
$loader->setClassMapAuthoritative(true);
3333
$loader->register(true);
3434

35-
$filesToLoad = \Composer\Autoload\ComposerStaticInit8c0d982f7669f963a38f0bb4143cca40::$files;
35+
$filesToLoad = \Composer\Autoload\ComposerStaticInitea4756fe54e6b2eb6dba86dfa54e1a9f::$files;
3636
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
3737
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
3838
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

vendor/composer/autoload_static.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Composer\Autoload;
66

7-
class ComposerStaticInit8c0d982f7669f963a38f0bb4143cca40
7+
class ComposerStaticInitea4756fe54e6b2eb6dba86dfa54e1a9f
88
{
99
public static $files = array (
1010
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@@ -3101,9 +3101,9 @@ class ComposerStaticInit8c0d982f7669f963a38f0bb4143cca40
31013101
public static function getInitializer(ClassLoader $loader)
31023102
{
31033103
return \Closure::bind(function () use ($loader) {
3104-
$loader->prefixLengthsPsr4 = ComposerStaticInit8c0d982f7669f963a38f0bb4143cca40::$prefixLengthsPsr4;
3105-
$loader->prefixDirsPsr4 = ComposerStaticInit8c0d982f7669f963a38f0bb4143cca40::$prefixDirsPsr4;
3106-
$loader->classMap = ComposerStaticInit8c0d982f7669f963a38f0bb4143cca40::$classMap;
3104+
$loader->prefixLengthsPsr4 = ComposerStaticInitea4756fe54e6b2eb6dba86dfa54e1a9f::$prefixLengthsPsr4;
3105+
$loader->prefixDirsPsr4 = ComposerStaticInitea4756fe54e6b2eb6dba86dfa54e1a9f::$prefixDirsPsr4;
3106+
$loader->classMap = ComposerStaticInitea4756fe54e6b2eb6dba86dfa54e1a9f::$classMap;
31073107

31083108
}, null, ClassLoader::class);
31093109
}

vendor/composer/installed.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,12 +1915,12 @@
19151915
"source": {
19161916
"type": "git",
19171917
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
1918-
"reference": "fc1c39f708ac6211f0be78cb7261a5dc8cb5610e"
1918+
"reference": "fb0167c44f5238db01c8ffe310971c79995b457f"
19191919
},
19201920
"dist": {
19211921
"type": "zip",
1922-
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/fc1c39f708ac6211f0be78cb7261a5dc8cb5610e",
1923-
"reference": "fc1c39f708ac6211f0be78cb7261a5dc8cb5610e",
1922+
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/fb0167c44f5238db01c8ffe310971c79995b457f",
1923+
"reference": "fb0167c44f5238db01c8ffe310971c79995b457f",
19241924
"shasum": ""
19251925
},
19261926
"require": {
@@ -1944,7 +1944,7 @@
19441944
"tomasvotruba\/type-coverage": "^0.0.9",
19451945
"tomasvotruba\/unused-public": "^0.0.34"
19461946
},
1947-
"time": "2023-02-11T12:19:09+00:00",
1947+
"time": "2023-02-14T14:16:06+00:00",
19481948
"default-branch": true,
19491949
"type": "rector-extension",
19501950
"extra": {

vendor/composer/installed.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

vendor/rector/extension-installer/src/GeneratedConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
final class GeneratedConfig
1111
{
12-
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 ea9cf46'), '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 fc1c39f'), '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 13e842b'), '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 a82d4c2'));
12+
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 ea9cf46'), '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 fb0167c'), '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 13e842b'), '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 a82d4c2'));
1313
private function __construct()
1414
{
1515
}

vendor/rector/rector-downgrade-php/rules/DowngradePhp80/Rector/ClassMethod/DowngradeTrailingCommasInParamUseRector.php

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@
44
namespace Rector\DowngradePhp80\Rector\ClassMethod;
55

66
use PhpParser\Node;
7-
use PhpParser\Node\Arg;
87
use PhpParser\Node\Expr\Closure;
98
use PhpParser\Node\Expr\ClosureUse;
10-
use PhpParser\Node\Expr\FuncCall;
11-
use PhpParser\Node\Expr\MethodCall;
12-
use PhpParser\Node\Expr\New_;
13-
use PhpParser\Node\Expr\StaticCall;
149
use PhpParser\Node\Param;
1510
use PhpParser\Node\Stmt\ClassMethod;
1611
use PhpParser\Node\Stmt\Function_;
@@ -76,33 +71,18 @@ function inFunction(string $value1, string $value2)
7671
*/
7772
public function getNodeTypes() : array
7873
{
79-
return [ClassMethod::class, Function_::class, Closure::class, StaticCall::class, FuncCall::class, MethodCall::class, New_::class];
74+
return [ClassMethod::class, Function_::class, Closure::class];
8075
}
8176
/**
82-
* @param ClassMethod|Function_|Closure|FuncCall|MethodCall|StaticCall|New_ $node
77+
* @param ClassMethod|Function_|Closure $node
8378
*/
8479
public function refactor(Node $node) : ?Node
8580
{
86-
if ($node instanceof MethodCall || $node instanceof FuncCall || $node instanceof StaticCall || $node instanceof New_) {
87-
/** @var MethodCall|FuncCall|StaticCall|New_ $node */
88-
return $this->processArgs($node);
89-
}
9081
if ($node instanceof Closure) {
9182
$this->processUses($node);
9283
}
9384
return $this->processParams($node);
9485
}
95-
/**
96-
* @param \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\New_ $node
97-
*/
98-
private function processArgs($node) : ?Node
99-
{
100-
$args = $node->getArgs();
101-
if ($args === []) {
102-
return null;
103-
}
104-
return $this->cleanTrailingComma($node, $args);
105-
}
10686
private function processUses(Closure $node) : ?Node
10787
{
10888
if ($node->uses === []) {
@@ -121,8 +101,8 @@ private function processParams($node) : ?Node
121101
return $this->cleanTrailingComma($node, $node->params);
122102
}
123103
/**
124-
* @param ClosureUse[]|Param[]|Arg[] $array
125-
* @param \PhpParser\Node\Expr\FuncCall|\PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\New_|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\Closure|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_ $node
104+
* @param ClosureUse[]|Param[] $array
105+
* @param \PhpParser\Node\Expr\Closure|\PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_ $node
126106
*/
127107
private function cleanTrailingComma($node, array $array) : ?Node
128108
{

0 commit comments

Comments
 (0)