Updated Rector to commit ab06fea5b1a9e0a13353810e97d1c2e55047b3ca

ab06fea5b1 [StaticTypeMapper] Move namespaced name Name to specific NameNodeMapper (#5978)
This commit is contained in:
Tomas Votruba 2024-06-18 13:33:35 +00:00
parent caa3d9876b
commit ce49022236
4 changed files with 10 additions and 6 deletions

View File

@ -1867,12 +1867,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "42fcf16f9e7f89f2a8a0e63439055aff08807498"
"reference": "5cceff73aab868aab6317d924a4ec5710f5e024a"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/42fcf16f9e7f89f2a8a0e63439055aff08807498",
"reference": "42fcf16f9e7f89f2a8a0e63439055aff08807498",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/5cceff73aab868aab6317d924a4ec5710f5e024a",
"reference": "5cceff73aab868aab6317d924a4ec5710f5e024a",
"shasum": ""
},
"require": {
@ -1901,7 +1901,7 @@
"tomasvotruba\/class-leak": "^0.2.13",
"tracy\/tracy": "^2.10"
},
"time": "2024-06-18T03:04:11+00:00",
"time": "2024-06-18T13:29:44+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/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 6eb8de8'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main a16ded4'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 6816002'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 42fcf16'));
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main 6eb8de8'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main a16ded4'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 6816002'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/rector-build/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main 5cceff7'));
private function __construct()
{
}

View File

@ -105,6 +105,10 @@ CODE_SAMPLE
if (!$this->isObjectType($node->var, new ObjectType('Symfony\\Component\\DependencyInjection\\ContainerInterface'))) {
return null;
}
$args = $node->getArgs();
if (\is_array($args) && \count($args) === 1 && $args[0]->value->getType() === 'Expr_ClassConstFetch') {
return null;
}
$propertyMetadata = $this->dependencyInjectionMethodCallAnalyzer->replaceMethodCallWithPropertyFetchAndDependency($class, $node);
if (!$propertyMetadata instanceof PropertyMetadata) {
return null;