Updated Rector to commit 1ac8dd340121f640d489479995e3b66051009ae9

1ac8dd3401 [tests] note about doTestFileInfo() deprecation
This commit is contained in:
Tomas Votruba 2022-09-01 09:43:09 +00:00
parent 2518d99664
commit 5466f0a888
14 changed files with 55 additions and 52 deletions

View File

@ -114,6 +114,9 @@ abstract class AbstractRectorTestCase extends \Rector\Testing\PHPUnit\AbstractTe
$this->originalTempFilePath = $inputFilePath;
$this->doTestFileMatchesExpectedContent($inputFilePath, $expectedFilePath, $fixtureFilePath);
}
/**
* @deprecated Use doTestFile() with file path instead
*/
protected function doTestFileInfo(SmartFileInfo $fixtureFileInfo) : void
{
$fixtureFileRealPath = $fixtureFileInfo->getRealPath();

View File

@ -17,12 +17,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '84a48e5e10be865e5fe6f0bbdcab3a7fc300a886';
public const PACKAGE_VERSION = '1ac8dd340121f640d489479995e3b66051009ae9';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2022-09-01 11:33:11';
public const RELEASE_DATE = '2022-09-01 11:37:19';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitd475eda4ba9d2c1ac7b979b14447154f
class ComposerAutoloaderInit9ed7b839e082aa2486f96b38de1a73bb
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInitd475eda4ba9d2c1ac7b979b14447154f
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitd475eda4ba9d2c1ac7b979b14447154f', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit9ed7b839e082aa2486f96b38de1a73bb', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitd475eda4ba9d2c1ac7b979b14447154f', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit9ed7b839e082aa2486f96b38de1a73bb', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitd475eda4ba9d2c1ac7b979b14447154f::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit9ed7b839e082aa2486f96b38de1a73bb::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInitd475eda4ba9d2c1ac7b979b14447154f::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit9ed7b839e082aa2486f96b38de1a73bb::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequired475eda4ba9d2c1ac7b979b14447154f($fileIdentifier, $file);
composerRequire9ed7b839e082aa2486f96b38de1a73bb($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInitd475eda4ba9d2c1ac7b979b14447154f
* @param string $file
* @return void
*/
function composerRequired475eda4ba9d2c1ac7b979b14447154f($fileIdentifier, $file)
function composerRequire9ed7b839e082aa2486f96b38de1a73bb($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 ComposerStaticInitd475eda4ba9d2c1ac7b979b14447154f
class ComposerStaticInit9ed7b839e082aa2486f96b38de1a73bb
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
@ -3139,9 +3139,9 @@ class ComposerStaticInitd475eda4ba9d2c1ac7b979b14447154f
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitd475eda4ba9d2c1ac7b979b14447154f::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitd475eda4ba9d2c1ac7b979b14447154f::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitd475eda4ba9d2c1ac7b979b14447154f::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit9ed7b839e082aa2486f96b38de1a73bb::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit9ed7b839e082aa2486f96b38de1a73bb::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit9ed7b839e082aa2486f96b38de1a73bb::$classMap;
}, null, ClassLoader::class);
}

View File

@ -1784,12 +1784,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-cakephp.git",
"reference": "dc14bb900152ebbfd557fee11690dd9048d7124a"
"reference": "bfaf952b7093bd0b253ffcba4b1a1561d3b4e743"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-cakephp\/zipball\/dc14bb900152ebbfd557fee11690dd9048d7124a",
"reference": "dc14bb900152ebbfd557fee11690dd9048d7124a",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-cakephp\/zipball\/bfaf952b7093bd0b253ffcba4b1a1561d3b4e743",
"reference": "bfaf952b7093bd0b253ffcba4b1a1561d3b4e743",
"shasum": ""
},
"require": {
@ -1808,14 +1808,14 @@
"phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.6",
"rector\/rector-debugging": "dev-main",
"rector\/rector-src": "dev-main#946f5b1",
"rector\/rector-src": "dev-main",
"symplify\/easy-coding-standard": "^11.1",
"symplify\/phpstan-extensions": "^11.1",
"symplify\/phpstan-rules": "^11.1",
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-09-01T09:18:50+00:00",
"time": "2022-09-01T09:33:39+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@ -1922,12 +1922,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
"reference": "e4306ff0dc9ac20e21c669c117d45cbe3a0fc002"
"reference": "e91434a1c47d80b5f157188f841768c4c22da112"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/e4306ff0dc9ac20e21c669c117d45cbe3a0fc002",
"reference": "e4306ff0dc9ac20e21c669c117d45cbe3a0fc002",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/e91434a1c47d80b5f157188f841768c4c22da112",
"reference": "e91434a1c47d80b5f157188f841768c4c22da112",
"shasum": ""
},
"require": {
@ -1944,7 +1944,7 @@
"phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.6",
"rector\/rector-debugging": "dev-main",
"rector\/rector-src": "dev-main#297561b",
"rector\/rector-src": "dev-main",
"symplify\/easy-ci": "^11.1",
"symplify\/easy-coding-standard": "^11.1",
"symplify\/phpstan-extensions": "^11.1",
@ -1952,7 +1952,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-09-01T09:23:56+00:00",
"time": "2022-09-01T09:35:16+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@ -1993,12 +1993,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-laravel.git",
"reference": "1220d412a43ec17b3d4a27acfe73e0ee4478ad60"
"reference": "435188d2295e32a8d3fb0352c522e362ed503bdf"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/1220d412a43ec17b3d4a27acfe73e0ee4478ad60",
"reference": "1220d412a43ec17b3d4a27acfe73e0ee4478ad60",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/435188d2295e32a8d3fb0352c522e362ed503bdf",
"reference": "435188d2295e32a8d3fb0352c522e362ed503bdf",
"shasum": ""
},
"require": {
@ -2015,7 +2015,7 @@
"phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.6",
"rector\/rector-debugging": "dev-main",
"rector\/rector-src": "dev-main#ef56c1d",
"rector\/rector-src": "dev-main",
"symplify\/easy-coding-standard": "^11.0",
"symplify\/monorepo-builder": "^11.0",
"symplify\/phpstan-extensions": "^11.0",
@ -2023,7 +2023,7 @@
"symplify\/rule-doc-generator": "^11.0",
"symplify\/vendor-patches": "^11.0"
},
"time": "2022-09-01T08:29:53+00:00",
"time": "2022-09-01T09:34:06+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@ -2061,12 +2061,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpoffice.git",
"reference": "a0c701101a6325551533012d6e80ff324e4e6f99"
"reference": "e5a1d4c4cfab26fe21c05b32e2c3b186f35f368e"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpoffice\/zipball\/a0c701101a6325551533012d6e80ff324e4e6f99",
"reference": "a0c701101a6325551533012d6e80ff324e4e6f99",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpoffice\/zipball\/e5a1d4c4cfab26fe21c05b32e2c3b186f35f368e",
"reference": "e5a1d4c4cfab26fe21c05b32e2c3b186f35f368e",
"shasum": ""
},
"require": {
@ -2083,14 +2083,14 @@
"phpunit\/phpunit": "^9.5.21",
"rector\/phpstan-rules": "^0.6",
"rector\/rector-debugging": "dev-main",
"rector\/rector-src": "dev-main#b52a846",
"rector\/rector-src": "dev-main",
"symplify\/easy-coding-standard": "^11.1",
"symplify\/phpstan-extensions": "^11.1",
"symplify\/phpstan-rules": "^11.1",
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-09-01T09:16:43+00:00",
"time": "2022-09-01T09:33:58+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@ -2128,12 +2128,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "9ccb59f04d5df6ce7b1e4f80e093f5f3ba4dd609"
"reference": "087730ed2ff1cbb084a542fc90984b27b22cf9eb"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/9ccb59f04d5df6ce7b1e4f80e093f5f3ba4dd609",
"reference": "9ccb59f04d5df6ce7b1e4f80e093f5f3ba4dd609",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/087730ed2ff1cbb084a542fc90984b27b22cf9eb",
"reference": "087730ed2ff1cbb084a542fc90984b27b22cf9eb",
"shasum": ""
},
"require": {
@ -2151,7 +2151,7 @@
"rector\/phpstan-rules": "^0.6",
"rector\/rector-debugging": "dev-main",
"rector\/rector-generator": "^0.6",
"rector\/rector-src": "dev-main#946f5b1",
"rector\/rector-src": "dev-main",
"symplify\/easy-ci": "^11.1",
"symplify\/easy-coding-standard": "^11.1",
"symplify\/phpstan-extensions": "^11.1",
@ -2159,7 +2159,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-09-01T09:17:55+00:00",
"time": "2022-09-01T09:33:48+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@ -2197,12 +2197,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "1cb8fa70800c2769d56dbdda36256adb630e08c4"
"reference": "3aaa1edf5b7ba887fa9a8d306d9d4aaa15918a30"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/1cb8fa70800c2769d56dbdda36256adb630e08c4",
"reference": "1cb8fa70800c2769d56dbdda36256adb630e08c4",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/3aaa1edf5b7ba887fa9a8d306d9d4aaa15918a30",
"reference": "3aaa1edf5b7ba887fa9a8d306d9d4aaa15918a30",
"shasum": ""
},
"require": {
@ -2222,7 +2222,7 @@
"rector\/phpstan-rules": "^0.6",
"rector\/rector-debugging": "dev-main",
"rector\/rector-generator": "^0.6",
"rector\/rector-src": "dev-main#946f5b1",
"rector\/rector-src": "dev-main",
"symfony\/routing": "^6.1",
"symfony\/security-core": "^6.1",
"symfony\/security-http": "^6.1",
@ -2233,7 +2233,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-09-01T09:22:31+00:00",
"time": "2022-09-01T09:33:28+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-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 dc14bb9'), '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 3ef7085'), '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 e4306ff'), '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 1220d41'), '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 a0c7011'), '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 9ccb59f'), '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 1cb8fa7'));
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 bfaf952'), '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 3ef7085'), '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 e91434a'), '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 435188d'), '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 e5a1d4c'), '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 087730e'), '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 3aaa1ed'));
private function __construct()
{
}

View File

@ -10,7 +10,7 @@
},
"require-dev": {
"phpstan\/phpstan": "^1.8.1",
"rector\/rector-src": "dev-main#946f5b1",
"rector\/rector-src": "dev-main",
"phpunit\/phpunit": "^9.5",
"symplify\/phpstan-rules": "^11.1",
"symplify\/phpstan-extensions": "^11.1",

View File

@ -14,7 +14,7 @@
"phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.6",
"rector\/rector-debugging": "dev-main",
"rector\/rector-src": "dev-main#297561b",
"rector\/rector-src": "dev-main",
"symplify\/easy-ci": "^11.1",
"symplify\/easy-coding-standard": "^11.1",
"symplify\/phpstan-extensions": "^11.1",

View File

@ -7,7 +7,7 @@
"php": ">=8.1"
},
"require-dev": {
"rector\/rector-src": "dev-main#ef56c1d",
"rector\/rector-src": "dev-main",
"phpunit\/phpunit": "^9.5",
"phpstan\/phpstan": "^1.8.2",
"symplify\/phpstan-rules": "^11.0",

View File

@ -15,7 +15,7 @@
"symplify\/phpstan-extensions": "^11.1",
"symplify\/easy-coding-standard": "^11.1",
"symplify\/rule-doc-generator": "^11.1",
"rector\/rector-src": "dev-main#b52a846",
"rector\/rector-src": "dev-main",
"phpstan\/phpstan-strict-rules": "^1.3",
"phpstan\/phpstan-webmozart-assert": "^1.2",
"symplify\/vendor-patches": "^11.1",

View File

@ -7,7 +7,7 @@
"php": ">=8.1"
},
"require-dev": {
"rector\/rector-src": "dev-main#946f5b1",
"rector\/rector-src": "dev-main",
"phpunit\/phpunit": "^9.5",
"phpstan\/phpstan": "^1.8",
"symplify\/phpstan-rules": "^11.1",

View File

@ -17,7 +17,7 @@
"rector\/rector-debugging": "dev-main",
"rector\/phpstan-rules": "^0.6",
"rector\/rector-generator": "^0.6",
"rector\/rector-src": "dev-main#946f5b1",
"rector\/rector-src": "dev-main",
"symfony\/routing": "^6.1",
"symfony\/security-core": "^6.1",
"symfony\/security-http": "^6.1",