Updated Rector to commit cebcea0a9aae472a64f80608d88e79a91797a67d

cebcea0a9a Support class-const-fetch in ReturnTypeFromStrictTypedCallRector (#4520)
This commit is contained in:
Tomas Votruba 2023-07-17 03:49:59 +00:00
parent 21ca2cb895
commit 34b2975e47
7 changed files with 21 additions and 16 deletions

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit21a24046936f8c50dacfcf44c99849af::getLoader();
return ComposerAutoloaderInit4c6e31259a637b78f122f17add4a627c::getLoader();

View File

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

View File

@ -1917,12 +1917,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
"reference": "95e66a62877d61085533aaba3a8913eeda6c2b91"
"reference": "3807e184e3664aa5b1f0f8fb464cb53616e3f0a8"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/95e66a62877d61085533aaba3a8913eeda6c2b91",
"reference": "95e66a62877d61085533aaba3a8913eeda6c2b91",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/3807e184e3664aa5b1f0f8fb464cb53616e3f0a8",
"reference": "3807e184e3664aa5b1f0f8fb464cb53616e3f0a8",
"shasum": ""
},
"require": {
@ -1947,7 +1947,7 @@
"tomasvotruba\/type-coverage": "^0.2",
"tomasvotruba\/unused-public": "^0.1"
},
"time": "2023-07-13T20:19:23+00:00",
"time": "2023-07-17T03:43:41+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 95e66a6'), '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 734960f'), '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 59b84b7'), '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 a0af12a'));
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 3807e18'), '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 734960f'), '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 59b84b7'), '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 a0af12a'));
private function __construct()
{
}

View File

@ -10,7 +10,9 @@ use RectorPrefix202307\Doctrine\ORM\Mapping\OneToMany;
use RectorPrefix202307\Doctrine\ORM\Mapping\OneToOne;
use PhpParser\Node;
use PhpParser\Node\Attribute;
use PhpParser\Node\Expr\ClassConstFetch;
use PhpParser\Node\Identifier;
use PhpParser\Node\Scalar\String_;
use PhpParser\Node\Stmt\Property;
use Rector\BetterPhpDocParser\PhpDoc\ArrayItemNode;
use Rector\BetterPhpDocParser\PhpDoc\DoctrineAnnotationTagValueNode;
@ -122,6 +124,9 @@ CODE_SAMPLE
if (!$this->isName($argName, $attributeName)) {
continue;
}
if (!$arg->value instanceof String_) {
continue;
}
/** @var string $value - Should always be string at this point */
$value = $this->valueResolver->getValue($arg->value);
$fullyQualified = $this->doctrineClassAnnotationMatcher->resolveExpectingDoctrineFQCN($value, $property);