mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 03:35:01 +01:00
Updated Rector to commit b8549f547ab72234078416e53f62ba16ab8582c6
b8549f547a
[PHP 8.0] Add NestedAnnotationToAttributeRector (#2781)
This commit is contained in:
parent
d2c2df7ac2
commit
cdbe494753
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitb227991ae15ea73258297648166d904c::getLoader();
|
||||
return ComposerAutoloaderInit19776cbf60a90cac3315ca293894b865::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 ComposerAutoloaderInitb227991ae15ea73258297648166d904c
|
||||
class ComposerAutoloaderInit19776cbf60a90cac3315ca293894b865
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,19 +22,19 @@ class ComposerAutoloaderInitb227991ae15ea73258297648166d904c
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb227991ae15ea73258297648166d904c', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit19776cbf60a90cac3315ca293894b865', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb227991ae15ea73258297648166d904c', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit19776cbf60a90cac3315ca293894b865', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb227991ae15ea73258297648166d904c::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit19776cbf60a90cac3315ca293894b865::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInitb227991ae15ea73258297648166d904c::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit19776cbf60a90cac3315ca293894b865::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequireb227991ae15ea73258297648166d904c($fileIdentifier, $file);
|
||||
composerRequire19776cbf60a90cac3315ca293894b865($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -46,7 +46,7 @@ class ComposerAutoloaderInitb227991ae15ea73258297648166d904c
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequireb227991ae15ea73258297648166d904c($fileIdentifier, $file)
|
||||
function composerRequire19776cbf60a90cac3315ca293894b865($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 ComposerStaticInitb227991ae15ea73258297648166d904c
|
||||
class ComposerStaticInit19776cbf60a90cac3315ca293894b865
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
@ -3255,9 +3255,9 @@ class ComposerStaticInitb227991ae15ea73258297648166d904c
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb227991ae15ea73258297648166d904c::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb227991ae15ea73258297648166d904c::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitb227991ae15ea73258297648166d904c::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit19776cbf60a90cac3315ca293894b865::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit19776cbf60a90cac3315ca293894b865::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit19776cbf60a90cac3315ca293894b865::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -1852,12 +1852,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
|
||||
"reference": "49ba991f5df9d8aa178a20e191ed4599c9786dc5"
|
||||
"reference": "15c36f09a2c43f88c123629eed826c0207731542"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/49ba991f5df9d8aa178a20e191ed4599c9786dc5",
|
||||
"reference": "49ba991f5df9d8aa178a20e191ed4599c9786dc5",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/15c36f09a2c43f88c123629eed826c0207731542",
|
||||
"reference": "15c36f09a2c43f88c123629eed826c0207731542",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -1882,7 +1882,7 @@
|
||||
"symplify\/rule-doc-generator": "^11.0",
|
||||
"symplify\/vendor-patches": "^11.0"
|
||||
},
|
||||
"time": "2022-08-17T09:23:35+00:00",
|
||||
"time": "2022-08-18T17:56:25+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
|
||||
*/
|
||||
final class GeneratedConfig
|
||||
{
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c2ec06c'), '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 49ba991'), '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 efc7ddf'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 38440b9'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 20edb95'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3638a66'), '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 0e0e399'), '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 3f3aba3'));
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c2ec06c'), '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 15c36f0'), '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 efc7ddf'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 38440b9'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 20edb95'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3638a66'), '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 0e0e399'), '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 3f3aba3'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
@ -5,8 +5,16 @@ namespace RectorPrefix202208;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
|
||||
use Rector\Php80\Rector\Property\NestedAnnotationToAttributeRector;
|
||||
use Rector\Php80\ValueObject\AnnotationToAttribute;
|
||||
use Rector\Php80\ValueObject\NestedAnnotationToAttribute;
|
||||
return static function (RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->ruleWithConfiguration(NestedAnnotationToAttributeRector::class, [
|
||||
/** @see https://www.doctrine-project.org/projects/doctrine-orm/en/2.13/reference/attributes-reference.html#joincolumn-inversejoincolumn */
|
||||
new NestedAnnotationToAttribute('Doctrine\\ORM\\Mapping\\JoinTable', ['joinColumns' => 'Doctrine\\ORM\\Mapping\\JoinColumn', 'inverseJoinColumns' => 'Doctrine\\ORM\\Mapping\\InverseJoinColumn']),
|
||||
/** @see https://www.doctrine-project.org/projects/doctrine-orm/en/latest/reference/annotations-reference.html#joincolumns */
|
||||
new NestedAnnotationToAttribute('Doctrine\\ORM\\Mapping\\JoinColumns', ['Doctrine\\ORM\\Mapping\\JoinColumn'], \true),
|
||||
]);
|
||||
$rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [
|
||||
// class
|
||||
new AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Table'),
|
||||
@ -25,11 +33,8 @@ return static function (RectorConfig $rectorConfig) : void {
|
||||
new AnnotationToAttribute('Doctrine\\ORM\\Mapping\\ManyToMany'),
|
||||
new AnnotationToAttribute('Doctrine\\ORM\\Mapping\\JoinTable'),
|
||||
new AnnotationToAttribute('Doctrine\\ORM\\Mapping\\ManyToOne'),
|
||||
// join columns
|
||||
new AnnotationToAttribute('Doctrine\\ORM\\Mapping\\JoinColumns'),
|
||||
new AnnotationToAttribute('Doctrine\\ORM\\Mapping\\JoinColumn'),
|
||||
new AnnotationToAttribute('Doctrine\\ORM\\Mapping\\InverseJoinColumn'),
|
||||
new AnnotationToAttribute('Doctrine\\ORM\\Mapping\\OrderBy'),
|
||||
new AnnotationToAttribute('Doctrine\\ORM\\Mapping\\JoinColumn'),
|
||||
// embed
|
||||
new AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Embeddable'),
|
||||
new AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Embedded'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user