mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
Rector 0.11.9
This commit is contained in:
parent
d0bc9a69be
commit
d7df398d11
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'd34b8469aa1eafe0f41138a0aa03f61e2a996b03';
|
||||
public const PACKAGE_VERSION = '2344fdb6e4898084622d62ba2a88e77d32d4fed2';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-06-04 13:37:01';
|
||||
public const RELEASE_DATE = '2021-06-04 16:25:01';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20210604\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInita9d3c69e2c104ae04afbd8d26ba5aabc::getLoader();
|
||||
return ComposerAutoloaderInit75068577f9911a37ee4be99c9531c6c0::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 ComposerAutoloaderInita9d3c69e2c104ae04afbd8d26ba5aabc
|
||||
class ComposerAutoloaderInit75068577f9911a37ee4be99c9531c6c0
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInita9d3c69e2c104ae04afbd8d26ba5aabc
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInita9d3c69e2c104ae04afbd8d26ba5aabc', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit75068577f9911a37ee4be99c9531c6c0', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInita9d3c69e2c104ae04afbd8d26ba5aabc', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit75068577f9911a37ee4be99c9531c6c0', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInita9d3c69e2c104ae04afbd8d26ba5aabc::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit75068577f9911a37ee4be99c9531c6c0::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,19 +42,19 @@ class ComposerAutoloaderInita9d3c69e2c104ae04afbd8d26ba5aabc
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInita9d3c69e2c104ae04afbd8d26ba5aabc::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit75068577f9911a37ee4be99c9531c6c0::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirea9d3c69e2c104ae04afbd8d26ba5aabc($fileIdentifier, $file);
|
||||
composerRequire75068577f9911a37ee4be99c9531c6c0($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequirea9d3c69e2c104ae04afbd8d26ba5aabc($fileIdentifier, $file)
|
||||
function composerRequire75068577f9911a37ee4be99c9531c6c0($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInita9d3c69e2c104ae04afbd8d26ba5aabc
|
||||
class ComposerStaticInit75068577f9911a37ee4be99c9531c6c0
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
@ -3869,9 +3869,9 @@ class ComposerStaticInita9d3c69e2c104ae04afbd8d26ba5aabc
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInita9d3c69e2c104ae04afbd8d26ba5aabc::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInita9d3c69e2c104ae04afbd8d26ba5aabc::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInita9d3c69e2c104ae04afbd8d26ba5aabc::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit75068577f9911a37ee4be99c9531c6c0::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit75068577f9911a37ee4be99c9531c6c0::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit75068577f9911a37ee4be99c9531c6c0::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
29
vendor/composer/installed.json
vendored
29
vendor/composer/installed.json
vendored
@ -1308,17 +1308,17 @@
|
||||
},
|
||||
{
|
||||
"name": "rector\/rector-doctrine",
|
||||
"version": "0.11.2",
|
||||
"version_normalized": "0.11.2.0",
|
||||
"version": "0.11.3",
|
||||
"version_normalized": "0.11.3.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
|
||||
"reference": "c448264acc0e6caa2ae9ecb57454f600af4f4c6a"
|
||||
"reference": "5899205a3e49d08d2dc05206fe08c36c127e6cd0"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/c448264acc0e6caa2ae9ecb57454f600af4f4c6a",
|
||||
"reference": "c448264acc0e6caa2ae9ecb57454f600af4f4c6a",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/5899205a3e49d08d2dc05206fe08c36c127e6cd0",
|
||||
"reference": "5899205a3e49d08d2dc05206fe08c36c127e6cd0",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -1328,6 +1328,7 @@
|
||||
"rector\/rector": "<0.11"
|
||||
},
|
||||
"require-dev": {
|
||||
"doctrine\/orm": "^2.9",
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"rector\/rector-src": "^0.11.2",
|
||||
"symplify\/easy-coding-standard": "^9.2",
|
||||
@ -1335,7 +1336,7 @@
|
||||
"symplify\/phpstan-rules": "^9.2",
|
||||
"symplify\/rule-doc-generator": "^9.2"
|
||||
},
|
||||
"time": "2021-05-15T01:20:49+00:00",
|
||||
"time": "2021-06-03T12:35:00+00:00",
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
@ -1360,7 +1361,7 @@
|
||||
"description": "Rector upgrades rules for Doctrine",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/rectorphp\/rector-doctrine\/issues",
|
||||
"source": "https:\/\/github.com\/rectorphp\/rector-doctrine\/tree\/0.11.2"
|
||||
"source": "https:\/\/github.com\/rectorphp\/rector-doctrine\/tree\/0.11.3"
|
||||
},
|
||||
"install-path": "..\/rector\/rector-doctrine"
|
||||
},
|
||||
@ -1757,17 +1758,17 @@
|
||||
},
|
||||
{
|
||||
"name": "ssch\/typo3-rector",
|
||||
"version": "v0.11.13",
|
||||
"version_normalized": "0.11.13.0",
|
||||
"version": "v0.11.14",
|
||||
"version_normalized": "0.11.14.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/sabbelasichon\/typo3-rector.git",
|
||||
"reference": "fa550d7f2388bcdd0d47c6cd38affe25e078b735"
|
||||
"reference": "0dce7c7bee1214ac1d5e67b18521a8b3c5bbc6ce"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/sabbelasichon\/typo3-rector\/zipball\/fa550d7f2388bcdd0d47c6cd38affe25e078b735",
|
||||
"reference": "fa550d7f2388bcdd0d47c6cd38affe25e078b735",
|
||||
"url": "https:\/\/api.github.com\/repos\/sabbelasichon\/typo3-rector\/zipball\/0dce7c7bee1214ac1d5e67b18521a8b3c5bbc6ce",
|
||||
"reference": "0dce7c7bee1214ac1d5e67b18521a8b3c5bbc6ce",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -1792,7 +1793,7 @@
|
||||
"symplify\/rule-doc-generator": "^9.3",
|
||||
"tracy\/tracy": "^2.8"
|
||||
},
|
||||
"time": "2021-05-29T23:18:17+00:00",
|
||||
"time": "2021-06-02T14:31:36+00:00",
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
"rector": {
|
||||
@ -1821,7 +1822,7 @@
|
||||
"description": "Instant fixes for your TYPO3 code by using Rector.",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/sabbelasichon\/typo3-rector\/issues",
|
||||
"source": "https:\/\/github.com\/sabbelasichon\/typo3-rector\/tree\/v0.11.13"
|
||||
"source": "https:\/\/github.com\/sabbelasichon\/typo3-rector\/tree\/v0.11.14"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
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' => '0.11.2'), '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' => '0.11.2'), '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' => '0.11.1'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => '0.11.4'), 'rector/rector-nette-to-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette-to-symfony', 'relative_install_path' => '../../rector-nette-to-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => '0.11.3'), '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' => '0.11.1'), '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' => '0.11.4'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'v0.11.13'));
|
||||
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' => '0.11.2'), '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' => '0.11.3'), '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' => '0.11.1'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => '0.11.4'), 'rector/rector-nette-to-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette-to-symfony', 'relative_install_path' => '../../rector-nette-to-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => '0.11.3'), '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' => '0.11.1'), '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' => '0.11.4'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'v0.11.14'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
26
vendor/rector/rector-doctrine/README.md
vendored
26
vendor/rector/rector-doctrine/README.md
vendored
@ -4,8 +4,12 @@ See available [Doctrine rules](/docs/rector_rules_overview.md)
|
||||
|
||||
## Install
|
||||
|
||||
This package is already part of [rector/rector](http://github.com/rectorphp/rector) package, so it works out of the box.
|
||||
|
||||
All you need to do is install the main package, and you're good to go:
|
||||
|
||||
```bash
|
||||
composer require rector/rector-doctrine
|
||||
composer require rector/rector --dev
|
||||
```
|
||||
|
||||
## Use Sets
|
||||
@ -20,3 +24,23 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
$containerConfigurator->import(DoctrineSetList::DOCTRINE_CODE_QUALITY);
|
||||
};
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
## Read a First Book About Rector
|
||||
|
||||
Are you curious, how Rector works internally, how to create your own rules and test them and why Rector was born? In May 2021 we've released the very first book: *Rector - The Power of Automated Refactoring*.
|
||||
|
||||
<a href="https://leanpub.com/rector-the-power-of-automated-refactoring">
|
||||
<img src="https://github.com/rectorphp/the-power-of-automated-refactoring-feedback/raw/main/images/book_title.png">
|
||||
</a>
|
||||
|
||||
By [buying a book](https://leanpub.com/rector-the-power-of-automated-refactoring) you directly support maintainers who are working on Rector.
|
||||
|
||||
<br>
|
||||
|
||||
## Support
|
||||
|
||||
Rector is a tool that [we develop](https://getrector.org/) and share for free, so anyone can automate their refactoring. But not everyone has dozens of hours to understand complexity of abstract-syntax-tree in their own time. **That's why we provide commercial support - to save your time**.
|
||||
|
||||
Would you like to apply Rector on your code base but don't have time for the struggle with your project? [Hire us](https://getrector.org/contact) to get there faster.
|
||||
|
3
vendor/rector/rector-doctrine/composer.json
vendored
3
vendor/rector/rector-doctrine/composer.json
vendored
@ -12,7 +12,8 @@
|
||||
"symplify\/phpstan-extensions": "^9.2",
|
||||
"symplify\/easy-coding-standard": "^9.2",
|
||||
"symplify\/rule-doc-generator": "^9.2",
|
||||
"rector\/rector-src": "^0.11.2"
|
||||
"rector\/rector-src": "^0.11.2",
|
||||
"doctrine\/orm": "^2.9"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
14
vendor/rector/rector-doctrine/config/sets/doctrine-orm-29.php
vendored
Normal file
14
vendor/rector/rector-doctrine/config/sets/doctrine-orm-29.php
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix20210604;
|
||||
|
||||
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
|
||||
use Rector\Php80\ValueObject\AnnotationToAttribute;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
use Symplify\SymfonyPhpConfig\ValueObjectInliner;
|
||||
return static function (\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator) : void {
|
||||
$parameters = $containerConfigurator->parameters();
|
||||
$services = $containerConfigurator->services();
|
||||
$services->set(\Rector\Php80\Rector\Class_\AnnotationToAttributeRector::class)->call('configure', [[\Rector\Php80\Rector\Class_\AnnotationToAttributeRector::ANNOTATION_TO_ATTRIBUTE => \Symplify\SymfonyPhpConfig\ValueObjectInliner::inline([new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Table', 'Doctrine\\ORM\\Mapping\\Table'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Entity', 'Doctrine\\ORM\\Mapping\\Entity'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Column', 'Doctrine\\ORM\\Mapping\\Column'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Id', 'Doctrine\\ORM\\Mapping\\Id'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\GeneratedValue', 'Doctrine\\ORM\\Mapping\\GeneratedValue'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\OneToOne', 'Doctrine\\ORM\\Mapping\\OneToOne'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\ManyToMany', 'Doctrine\\ORM\\Mapping\\ManyToMany'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\JoinTable', 'Doctrine\\ORM\\Mapping\\JoinTable'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\ManyToOne', 'Doctrine\\ORM\\Mapping\\ManyToOne'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\JoinColumn', 'Doctrine\\ORM\\Mapping\\JoinColumn'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\OneToMany', 'Doctrine\\ORM\\Mapping\\OneToMany'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\UniqueConstraint', 'Doctrine\\ORM\\Mapping\\UniqueConstraint'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\SequenceGenerator', 'Doctrine\\ORM\\Mapping\\SequenceGenerator'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\OrderBy', 'Doctrine\\ORM\\Mapping\\OrderBy'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Index', 'Doctrine\\ORM\\Mapping\\Index'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\CustomIdGenerator', 'Doctrine\\ORM\\Mapping\\CustomIdGenerator'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Embeddable', 'Doctrine\\ORM\\Mapping\\Embeddable'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Embedded', 'Doctrine\\ORM\\Mapping\\Embedded'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\MappedSuperclass', 'Doctrine\\ORM\\Mapping\\MappedSuperclass'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\InheritanceType', 'Doctrine\\ORM\\Mapping\\InheritanceType'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\DiscriminatorColumn', 'Doctrine\\ORM\\Mapping\\DiscriminatorColumn'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\DiscriminatorMap', 'Doctrine\\ORM\\Mapping\\DiscriminatorMap'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Version', 'Doctrine\\ORM\\Mapping\\Version'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\ChangeTrackingPolicy', 'Doctrine\\ORM\\Mapping\\ChangeTrackingPolicy'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\HasLifecycleCallbacks', 'Doctrine\\ORM\\Mapping\\HasLifecycleCallbacks'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\PostLoad', 'Doctrine\\ORM\\Mapping\\PostLoad'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\PostPersist', 'Doctrine\\ORM\\Mapping\\PostPersist'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\PostRemove', 'Doctrine\\ORM\\Mapping\\PostRemove'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\PostUpdate', 'Doctrine\\ORM\\Mapping\\PostUpdate'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\PrePersist', 'Doctrine\\ORM\\Mapping\\PrePersist'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\PreRemove', 'Doctrine\\ORM\\Mapping\\PreRemove'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\PreUpdate', 'Doctrine\\ORM\\Mapping\\PreUpdate'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\Cache', 'Doctrine\\ORM\\Mapping\\Cache'), new \Rector\Php80\ValueObject\AnnotationToAttribute('Doctrine\\ORM\\Mapping\\JoinColumns', 'Doctrine\\ORM\\Mapping\\JoinColumns')])]]);
|
||||
};
|
@ -68,7 +68,7 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
class SomeClass
|
||||
{
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity=Training::class, mappedBy="trainer")
|
||||
* @ORM\OneToMany(targetEntity=Trainer::class, mappedBy="trainer")
|
||||
* @var Collection|Trainer[]
|
||||
*/
|
||||
private $trainings = [];
|
||||
@ -84,8 +84,8 @@ use Doctrine\ORM\Mapping as ORM;
|
||||
class SomeClass
|
||||
{
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity=Training::class, mappedBy="trainer")
|
||||
* @var Collection<int, Training>|Trainer[]
|
||||
* @ORM\OneToMany(targetEntity=Trainer::class, mappedBy="trainer")
|
||||
* @var Collection<int, Trainer>|Trainer[]
|
||||
*/
|
||||
private $trainings = [];
|
||||
}
|
||||
|
@ -42,4 +42,8 @@ final class DoctrineSetList implements \Rector\Set\Contract\SetListInterface
|
||||
* @var string
|
||||
*/
|
||||
public const DOCTRINE_REPOSITORY_AS_SERVICE = __DIR__ . '/../../config/sets/doctrine-repository-as-service.php';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const DOCTRINE_ORM_29 = __DIR__ . '/../../config/sets/doctrine-orm-29.php';
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -21,8 +21,8 @@ if (!class_exists('SomeTestCase', false) && !interface_exists('SomeTestCase', fa
|
||||
if (!class_exists('CheckoutEntityFactory', false) && !interface_exists('CheckoutEntityFactory', false) && !trait_exists('CheckoutEntityFactory', false)) {
|
||||
spl_autoload_call('RectorPrefix20210604\CheckoutEntityFactory');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInita9d3c69e2c104ae04afbd8d26ba5aabc', false) && !interface_exists('ComposerAutoloaderInita9d3c69e2c104ae04afbd8d26ba5aabc', false) && !trait_exists('ComposerAutoloaderInita9d3c69e2c104ae04afbd8d26ba5aabc', false)) {
|
||||
spl_autoload_call('RectorPrefix20210604\ComposerAutoloaderInita9d3c69e2c104ae04afbd8d26ba5aabc');
|
||||
if (!class_exists('ComposerAutoloaderInit75068577f9911a37ee4be99c9531c6c0', false) && !interface_exists('ComposerAutoloaderInit75068577f9911a37ee4be99c9531c6c0', false) && !trait_exists('ComposerAutoloaderInit75068577f9911a37ee4be99c9531c6c0', false)) {
|
||||
spl_autoload_call('RectorPrefix20210604\ComposerAutoloaderInit75068577f9911a37ee4be99c9531c6c0');
|
||||
}
|
||||
if (!class_exists('Doctrine\Inflector\Inflector', false) && !interface_exists('Doctrine\Inflector\Inflector', false) && !trait_exists('Doctrine\Inflector\Inflector', false)) {
|
||||
spl_autoload_call('RectorPrefix20210604\Doctrine\Inflector\Inflector');
|
||||
@ -3323,9 +3323,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20210604\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequirea9d3c69e2c104ae04afbd8d26ba5aabc')) {
|
||||
function composerRequirea9d3c69e2c104ae04afbd8d26ba5aabc() {
|
||||
return \RectorPrefix20210604\composerRequirea9d3c69e2c104ae04afbd8d26ba5aabc(...func_get_args());
|
||||
if (!function_exists('composerRequire75068577f9911a37ee4be99c9531c6c0')) {
|
||||
function composerRequire75068577f9911a37ee4be99c9531c6c0() {
|
||||
return \RectorPrefix20210604\composerRequire75068577f9911a37ee4be99c9531c6c0(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -83,7 +83,7 @@ ClassLoadingInformation::registerClassLoadingInformation();
|
||||
Afterwards run rector:
|
||||
|
||||
```bash
|
||||
php ~/.composer/vendor/bin/rector process public/typo3conf/ext/your_extension/ -c .rector/config.php -n --autoload-file autoload.php
|
||||
php ~/.composer/vendor/bin/rector process public/typo3conf/ext/your_extension/ -c .rector/config.php -n --autoload-file=autoload.php
|
||||
```
|
||||
|
||||
Note that the path to the rector executable can vary on your system.
|
||||
|
@ -22,9 +22,9 @@ final class ApplicationContextConditionMatcher implements \Ssch\TYPO3Rector\Cont
|
||||
$newConditions = [];
|
||||
foreach ($values as $value) {
|
||||
if ($this->isRegularExpression($value)) {
|
||||
$newConditions[] = \sprintf('applicationContext matches %s', $value);
|
||||
$newConditions[] = \sprintf('applicationContext matches "%s"', $value);
|
||||
} else {
|
||||
$newConditions[] = \sprintf('applicationContext == %s', $value);
|
||||
$newConditions[] = \sprintf('applicationContext == "%s"', $value);
|
||||
}
|
||||
}
|
||||
return \implode(' || ', $newConditions);
|
||||
|
@ -65,8 +65,9 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
]);
|
||||
|
||||
// If you have trouble that rector cannot run because some TYPO3 constants are not defined add an additional constants file
|
||||
// Have a look at https://github.com/sabbelasichon/typo3-rector/blob/master/typo3.constants.php
|
||||
// $parameters->set(Option::AUTOLOAD_PATHS, [
|
||||
// @see https://github.com/sabbelasichon/typo3-rector/blob/master/typo3.constants.php
|
||||
// @see https://github.com/rectorphp/rector/blob/main/docs/static_reflection_and_autoload.md#include-files
|
||||
// $parameters->set(Option::BOOTSTRAP_FILES, [
|
||||
// __DIR__ . '/typo3.constants.php'
|
||||
// ]);
|
||||
|
||||
@ -84,7 +85,7 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
|
||||
|
||||
// Optional non-php file functionalities:
|
||||
// More info here: https://github.com/sabbelasichon/typo3-rector/blob/main/docs/beyond_php_file_processors.md
|
||||
// @see https://github.com/sabbelasichon/typo3-rector/blob/main/docs/beyond_php_file_processors.md
|
||||
|
||||
// Adapt your composer.json dependencies to the latest available version for the defined SetList
|
||||
// $containerConfigurator->import(Typo3SetList::COMPOSER_PACKAGES_104_CORE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user