mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-03 01:40:49 +00:00
Rector 0.14.8
This commit is contained in:
parent
e97dbec59e
commit
46ee9a173a
|
@ -17,7 +17,7 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '2af80959bc599d7318c1fe4f1662c411937634be';
|
||||
public const PACKAGE_VERSION = '0.14.8';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
|
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit14348262c92ced42ab491689cb626351::getLoader();
|
||||
return ComposerAutoloaderInit2b04441d1fb4ab60085e1ed0db63132c::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 ComposerAutoloaderInit14348262c92ced42ab491689cb626351
|
||||
class ComposerAutoloaderInit2b04441d1fb4ab60085e1ed0db63132c
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,19 +22,19 @@ class ComposerAutoloaderInit14348262c92ced42ab491689cb626351
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit14348262c92ced42ab491689cb626351', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit2b04441d1fb4ab60085e1ed0db63132c', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit14348262c92ced42ab491689cb626351', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit2b04441d1fb4ab60085e1ed0db63132c', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit14348262c92ced42ab491689cb626351::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit2b04441d1fb4ab60085e1ed0db63132c::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit14348262c92ced42ab491689cb626351::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit2b04441d1fb4ab60085e1ed0db63132c::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire14348262c92ced42ab491689cb626351($fileIdentifier, $file);
|
||||
composerRequire2b04441d1fb4ab60085e1ed0db63132c($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -46,7 +46,7 @@ class ComposerAutoloaderInit14348262c92ced42ab491689cb626351
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire14348262c92ced42ab491689cb626351($fileIdentifier, $file)
|
||||
function composerRequire2b04441d1fb4ab60085e1ed0db63132c($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 ComposerStaticInit14348262c92ced42ab491689cb626351
|
||||
class ComposerStaticInit2b04441d1fb4ab60085e1ed0db63132c
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
|
@ -3054,9 +3054,9 @@ class ComposerStaticInit14348262c92ced42ab491689cb626351
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit14348262c92ced42ab491689cb626351::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit14348262c92ced42ab491689cb626351::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit14348262c92ced42ab491689cb626351::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit2b04441d1fb4ab60085e1ed0db63132c::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit2b04441d1fb4ab60085e1ed0db63132c::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit2b04441d1fb4ab60085e1ed0db63132c::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
|
@ -2059,12 +2059,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
|
||||
"reference": "0a98dbb101f332ea4a395ab5aa82221935fc3573"
|
||||
"reference": "e572a473079d5ff39a7c6f5b11ef925896121017"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/0a98dbb101f332ea4a395ab5aa82221935fc3573",
|
||||
"reference": "0a98dbb101f332ea4a395ab5aa82221935fc3573",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/e572a473079d5ff39a7c6f5b11ef925896121017",
|
||||
"reference": "e572a473079d5ff39a7c6f5b11ef925896121017",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -2090,7 +2090,7 @@
|
|||
"symplify\/rule-doc-generator": "^11.1",
|
||||
"symplify\/vendor-patches": "^11.1"
|
||||
},
|
||||
"time": "2022-11-05T11:15:45+00:00",
|
||||
"time": "2022-11-14T13:59:10+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/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 17bdb82'), '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 da1013f'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9c21f5f'), '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 294de0c'), '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 0a98dbb'), '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 8b63302'));
|
||||
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 17bdb82'), '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 da1013f'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9c21f5f'), '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 294de0c'), '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 e572a47'), '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 8b63302'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
|
56
vendor/rector/rector-phpunit/config/sets/annotations-to-attributes.php
vendored
Normal file
56
vendor/rector/rector-phpunit/config/sets/annotations-to-attributes.php
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace RectorPrefix202211;
|
||||
|
||||
use Rector\Config\RectorConfig;
|
||||
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector;
|
||||
use Rector\Php80\ValueObject\AnnotationToAttribute;
|
||||
return static function (RectorConfig $rectorConfig) : void {
|
||||
$rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [
|
||||
// @see https://github.com/sebastianbergmann/phpunit/issues/4502
|
||||
new AnnotationToAttribute('after', 'PHPUnit\\Framework\\Attributes\\After'),
|
||||
new AnnotationToAttribute('afterClass', 'PHPUnit\\Framework\\Attributes\\AfterClass'),
|
||||
// new AnnotationToAttribute('backupGlobals', 'PHPUnit\Framework\Attributes\BackupGlobals'),
|
||||
// new AnnotationToAttribute('backupStaticAttributes', 'PHPUnit\Framework\Attributes\BackupStaticProperties'),
|
||||
new AnnotationToAttribute('before', 'PHPUnit\\Framework\\Attributes\\Before'),
|
||||
new AnnotationToAttribute('beforeClass', 'PHPUnit\\Framework\\Attributes\\BeforeClass'),
|
||||
new AnnotationToAttribute('codeCoverageIgnore', 'PHPUnit\\Framework\\Attributes\\CodeCoverageIgnore'),
|
||||
// new AnnotationToAttribute('covers', 'PHPUnit\Framework\Attributes\CoversClass'),
|
||||
// new AnnotationToAttribute('covers', 'PHPUnit\Framework\Attributes\CoversFunction'),
|
||||
new AnnotationToAttribute('coversNothing', 'PHPUnit\\Framework\\Attributes\\CoversNothing'),
|
||||
// new AnnotationToAttribute('dataProvider', 'PHPUnit\Framework\Attributes\DataProvider'),
|
||||
// new AnnotationToAttribute('dataProvider', 'PHPUnit\Framework\Attributes\DataProviderExternal'),
|
||||
// new AnnotationToAttribute('depends', 'PHPUnit\Framework\Attributes\Depends'),
|
||||
// new AnnotationToAttribute('depends', 'PHPUnit\Framework\Attributes\DependsExternal'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsExternalUsingDeepClone'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsExternalUsingShallowClone'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsOnClass'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsOnClassUsingDeepClone'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsOnClassUsingShallowClone'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsUsingDeepClone'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsUsingShallowClone'),
|
||||
new AnnotationToAttribute('doesNotPerformAssertions', 'PHPUnit\\Framework\\Attributes\\DoesNotPerformAssertions'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\ExcludeGlobalVariableFromBackup'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\ExcludeStaticPropertyFromBackup'),
|
||||
// new AnnotationToAttribute('group', 'PHPUnit\Framework\Attributes\Group'),
|
||||
new AnnotationToAttribute('large', 'PHPUnit\\Framework\\Attributes\\Large'),
|
||||
new AnnotationToAttribute('medium', 'PHPUnit\\Framework\\Attributes\\Medium'),
|
||||
new AnnotationToAttribute('preCondition', 'PHPUnit\\Framework\\Attributes\\PostCondition'),
|
||||
new AnnotationToAttribute('postCondition', 'PHPUnit\\Framework\\Attributes\\PreCondition'),
|
||||
new AnnotationToAttribute('preserveGlobalState', 'PHPUnit\\Framework\\Attributes\\PreserveGlobalState'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresFunction'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresMethod'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresOperatingSystem'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresOperatingSystemFamily'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresPhp'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresPhpExtension'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresPhpunit'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresSetting'),
|
||||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RunClassInSeparateProcess'),
|
||||
new AnnotationToAttribute('runInSeparateProcess', 'PHPUnit\\Framework\\Attributes\\RunInSeparateProcess'),
|
||||
new AnnotationToAttribute('runTestsInSeparateProcesses', 'PHPUnit\\Framework\\Attributes\\RunTestsInSeparateProcesses'),
|
||||
new AnnotationToAttribute('small', 'PHPUnit\\Framework\\Attributes\\Small'),
|
||||
new AnnotationToAttribute('test', 'PHPUnit\\Framework\\Attributes\\Test'),
|
||||
]);
|
||||
};
|
|
@ -58,4 +58,8 @@ final class PHPUnitSetList implements SetListInterface
|
|||
* @var string
|
||||
*/
|
||||
public const PHPUNIT_YIELD_DATA_PROVIDER = __DIR__ . '/../../config/sets/phpunit-yield-data-provider.php';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const ANNOTATIONS_TO_ATTRIBUTES = __DIR__ . '/../../config/sets/annotations-to-attributes.php';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user