Updated Rector to commit bfa8e983a341a6acc3d9980b521cb7a1a404ec70

bfa8e983a3 [Testing] Remove AbstractRectorTestCase::yieldFilePathsFromDirectory (#2894)
This commit is contained in:
Tomas Votruba 2022-09-02 11:06:50 +00:00
parent eea65cd62a
commit c220ca0b07
9 changed files with 45 additions and 52 deletions

View File

@ -84,14 +84,6 @@ abstract class AbstractRectorTestCase extends \Rector\Testing\PHPUnit\AbstractTe
{
return FixtureFileFinder::yieldDirectory($directory, $suffix);
}
/**
* @api
* @deprecated BC alias for yieldFilesFromDirectory()
*/
protected function yieldFilePathsFromDirectory(string $directory, string $suffix = '*.php.inc') : Iterator
{
return $this->yieldFilesFromDirectory($directory, $suffix);
}
protected function isWindows() : bool
{
return \strncasecmp(\PHP_OS, 'WIN', 3) === 0;

View File

@ -17,12 +17,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '6fa3ade0c296e366490d1e4bcc642dc53ad92674';
public const PACKAGE_VERSION = 'bfa8e983a341a6acc3d9980b521cb7a1a404ec70';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2022-09-02 10:22:13';
public const RELEASE_DATE = '2022-09-02 11:02:07';
/**
* @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 ComposerAutoloaderInitb7a113089e4ddeef65b82e292dc4be93::getLoader();
return ComposerAutoloaderInit809f9dc401ce76e893cf6c670efb21d4::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitb7a113089e4ddeef65b82e292dc4be93
class ComposerAutoloaderInit809f9dc401ce76e893cf6c670efb21d4
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInitb7a113089e4ddeef65b82e292dc4be93
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitb7a113089e4ddeef65b82e292dc4be93', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit809f9dc401ce76e893cf6c670efb21d4', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitb7a113089e4ddeef65b82e292dc4be93', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit809f9dc401ce76e893cf6c670efb21d4', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitb7a113089e4ddeef65b82e292dc4be93::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit809f9dc401ce76e893cf6c670efb21d4::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInitb7a113089e4ddeef65b82e292dc4be93::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit809f9dc401ce76e893cf6c670efb21d4::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequireb7a113089e4ddeef65b82e292dc4be93($fileIdentifier, $file);
composerRequire809f9dc401ce76e893cf6c670efb21d4($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInitb7a113089e4ddeef65b82e292dc4be93
* @param string $file
* @return void
*/
function composerRequireb7a113089e4ddeef65b82e292dc4be93($fileIdentifier, $file)
function composerRequire809f9dc401ce76e893cf6c670efb21d4($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 ComposerStaticInitb7a113089e4ddeef65b82e292dc4be93
class ComposerStaticInit809f9dc401ce76e893cf6c670efb21d4
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3093,9 +3093,9 @@ class ComposerStaticInitb7a113089e4ddeef65b82e292dc4be93
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitb7a113089e4ddeef65b82e292dc4be93::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb7a113089e4ddeef65b82e292dc4be93::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitb7a113089e4ddeef65b82e292dc4be93::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit809f9dc401ce76e893cf6c670efb21d4::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit809f9dc401ce76e893cf6c670efb21d4::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit809f9dc401ce76e893cf6c670efb21d4::$classMap;
}, null, ClassLoader::class);
}

View File

@ -1784,12 +1784,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-cakephp.git",
"reference": "bfaf952b7093bd0b253ffcba4b1a1561d3b4e743"
"reference": "a489bf049d6672d9ecdc03280f3f0f29c810cdd4"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-cakephp\/zipball\/bfaf952b7093bd0b253ffcba4b1a1561d3b4e743",
"reference": "bfaf952b7093bd0b253ffcba4b1a1561d3b4e743",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-cakephp\/zipball\/a489bf049d6672d9ecdc03280f3f0f29c810cdd4",
"reference": "a489bf049d6672d9ecdc03280f3f0f29c810cdd4",
"shasum": ""
},
"require": {
@ -1815,7 +1815,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-09-01T09:33:39+00:00",
"time": "2022-09-02T10:52:15+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@ -1853,12 +1853,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
"reference": "3ef708535ac9223b873e7002ced898bc8d2bf301"
"reference": "bdf6e7c07b91df02000fa286e30e74c7fb7e5301"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/3ef708535ac9223b873e7002ced898bc8d2bf301",
"reference": "3ef708535ac9223b873e7002ced898bc8d2bf301",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/bdf6e7c07b91df02000fa286e30e74c7fb7e5301",
"reference": "bdf6e7c07b91df02000fa286e30e74c7fb7e5301",
"shasum": ""
},
"require": {
@ -1884,7 +1884,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-09-01T09:33:18+00:00",
"time": "2022-09-02T10:53:49+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": "e6f1461ce8b132049848a97b51ef5f0271993191"
"reference": "b4b49bf4643751b7dba703fa2f57406082308e64"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/e6f1461ce8b132049848a97b51ef5f0271993191",
"reference": "e6f1461ce8b132049848a97b51ef5f0271993191",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/b4b49bf4643751b7dba703fa2f57406082308e64",
"reference": "b4b49bf4643751b7dba703fa2f57406082308e64",
"shasum": ""
},
"require": {
@ -1952,7 +1952,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-09-01T21:56:40+00:00",
"time": "2022-09-02T10:37:40+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": "cd9db8c094b4ef20c7c0f19b6902ea08a2c5f836"
"reference": "2decdcfeef9d117e4589ebc9e7fdbab11c030813"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/cd9db8c094b4ef20c7c0f19b6902ea08a2c5f836",
"reference": "cd9db8c094b4ef20c7c0f19b6902ea08a2c5f836",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/2decdcfeef9d117e4589ebc9e7fdbab11c030813",
"reference": "2decdcfeef9d117e4589ebc9e7fdbab11c030813",
"shasum": ""
},
"require": {
@ -2023,7 +2023,7 @@
"symplify\/rule-doc-generator": "^11.0",
"symplify\/vendor-patches": "^11.0"
},
"time": "2022-09-01T19:51:31+00:00",
"time": "2022-09-02T10:58:00+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": "e5a1d4c4cfab26fe21c05b32e2c3b186f35f368e"
"reference": "294de0ce80a9eb2c1b2d0d8e2762032dba0044e0"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpoffice\/zipball\/e5a1d4c4cfab26fe21c05b32e2c3b186f35f368e",
"reference": "e5a1d4c4cfab26fe21c05b32e2c3b186f35f368e",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpoffice\/zipball\/294de0ce80a9eb2c1b2d0d8e2762032dba0044e0",
"reference": "294de0ce80a9eb2c1b2d0d8e2762032dba0044e0",
"shasum": ""
},
"require": {
@ -2090,7 +2090,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-09-01T09:33:58+00:00",
"time": "2022-09-02T10:42:26+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": "087730ed2ff1cbb084a542fc90984b27b22cf9eb"
"reference": "876839e5be91b3b26a7be1f49248039a998dfd23"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/087730ed2ff1cbb084a542fc90984b27b22cf9eb",
"reference": "087730ed2ff1cbb084a542fc90984b27b22cf9eb",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/876839e5be91b3b26a7be1f49248039a998dfd23",
"reference": "876839e5be91b3b26a7be1f49248039a998dfd23",
"shasum": ""
},
"require": {
@ -2159,7 +2159,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-09-01T09:33:48+00:00",
"time": "2022-09-02T10:58:16+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": "09ce151a7b331b84738d6064593426d47ee987c3"
"reference": "8c0ac2ed019f8fc0655736f9c2668b519c13fbfe"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/09ce151a7b331b84738d6064593426d47ee987c3",
"reference": "09ce151a7b331b84738d6064593426d47ee987c3",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/8c0ac2ed019f8fc0655736f9c2668b519c13fbfe",
"reference": "8c0ac2ed019f8fc0655736f9c2668b519c13fbfe",
"shasum": ""
},
"require": {
@ -2233,7 +2233,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-09-02T02:47:10+00:00",
"time": "2022-09-02T10:34:07+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 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 e6f1461'), '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 cd9db8c'), '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 09ce151'));
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 a489bf0'), '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 bdf6e7c'), '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 b4b49bf'), '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 2decdcf'), '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 876839e'), '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 8c0ac2e'));
private function __construct()
{
}

View File

@ -46,6 +46,7 @@ final class OptionalToNullsafeOperatorRector extends AbstractRector implements M
*/
private $excludeMethods = [];
/**
* @readonly
* @var \Rector\Core\Util\MultiInstanceofChecker
*/
private $multiInstanceofChecker;