mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-06 03:10:50 +00:00
Updated Rector to commit 068799f59b289bef06b9c1f384df4301b19e726e
068799f59b
[Performance] Early skip func call name on ClassRenamer (#5837)
This commit is contained in:
parent
584e892a51
commit
655c2aa498
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
|
@ -1679,12 +1679,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
|
||||
"reference": "b3da143634de79b24a266afc07401cfe75a2c49c"
|
||||
"reference": "1a29b87f1b3afecec1a452d58b5ad08699f49735"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/b3da143634de79b24a266afc07401cfe75a2c49c",
|
||||
"reference": "b3da143634de79b24a266afc07401cfe75a2c49c",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/1a29b87f1b3afecec1a452d58b5ad08699f49735",
|
||||
"reference": "1a29b87f1b3afecec1a452d58b5ad08699f49735",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1709,7 +1709,7 @@
|
|||
"tomasvotruba\/unused-public": "^0.3",
|
||||
"tracy\/tracy": "^2.10"
|
||||
},
|
||||
"time": "2024-03-22T00:11:46+00:00",
|
||||
"time": "2024-04-21T12:35:29+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-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 b3da143'), '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 05e44cf'), '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 e8af39b'), '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 b8126e8'));
|
||||
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 1a29b87'), '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 05e44cf'), '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 e8af39b'), '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 b8126e8'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -31,6 +31,12 @@ final class JoinColumnAttributeTransformer implements PropertyAttributeTransform
|
|||
if (!\is_array($manyToOnePropertyMapping)) {
|
||||
return;
|
||||
}
|
||||
$singleJoinColumn = $manyToOnePropertyMapping['joinColumn'] ?? null;
|
||||
if (\is_array($singleJoinColumn)) {
|
||||
$name = $singleJoinColumn['name'];
|
||||
unset($singleJoinColumn['name']);
|
||||
$manyToOnePropertyMapping['joinColumns'][$name] = $singleJoinColumn;
|
||||
}
|
||||
$joinColumns = $manyToOnePropertyMapping['joinColumns'] ?? null;
|
||||
if (!\is_array($joinColumns)) {
|
||||
return;
|
||||
|
|
|
@ -33,7 +33,7 @@ final class ManyToOneAttributeTransformer implements PropertyAttributeTransforme
|
|||
return;
|
||||
}
|
||||
// handled by another mapper
|
||||
unset($manyToOneMapping['joinColumns']);
|
||||
unset($manyToOneMapping['joinColumn'], $manyToOneMapping['joinColumns']);
|
||||
// non existing
|
||||
unset($manyToOneMapping['nullable']);
|
||||
$args = $this->nodeFactory->createArgs($manyToOneMapping);
|
||||
|
|
Loading…
Reference in New Issue
Block a user