Updated Rector to commit 685dc702a0dc6c8490bf1d9c39f8a8072e4333f0

685dc702a0 Ability to yield files with names (#2732)
This commit is contained in:
Tomas Votruba 2022-08-04 19:19:43 +00:00
parent aba621c9e4
commit 80bfee9246
8 changed files with 29 additions and 22 deletions

View File

@ -94,6 +94,13 @@ abstract class AbstractRectorTestCase extends \Rector\Testing\PHPUnit\AbstractTe
{
return StaticFixtureFinder::yieldDirectoryExclusively($directory, $suffix);
}
/**
* @return Iterator<string, array<int, SmartFileInfo>>
*/
protected function yieldFilesWithPathnameFromDirectory(string $directory, string $suffix = '*.php.inc') : Iterator
{
return StaticFixtureFinder::yieldDirectoryExclusivelyWithRelativePathname($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 = 'a494d7c4f634553f490da4a689c06cfc903d6bb9';
public const PACKAGE_VERSION = '685dc702a0dc6c8490bf1d9c39f8a8072e4333f0';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2022-08-04 14:24:30';
public const RELEASE_DATE = '2022-08-04 21:13:37';
/**
* @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 ComposerAutoloaderInita92782b11ed639fd6cf425a8acce39e4::getLoader();
return ComposerAutoloaderInit289e376139a46b2f1bc5ca117a565b00::getLoader();

View File

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

View File

@ -3657,12 +3657,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/symplify\/easy-testing.git",
"reference": "9e5e286f704b7528fe165bb906fa36644c5536a9"
"reference": "6c9a4f36253a0c261fdec9eaa2d6d4a1388653a9"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/symplify\/easy-testing\/zipball\/9e5e286f704b7528fe165bb906fa36644c5536a9",
"reference": "9e5e286f704b7528fe165bb906fa36644c5536a9",
"url": "https:\/\/api.github.com\/repos\/symplify\/easy-testing\/zipball\/6c9a4f36253a0c261fdec9eaa2d6d4a1388653a9",
"reference": "6c9a4f36253a0c261fdec9eaa2d6d4a1388653a9",
"shasum": ""
},
"require": {
@ -3698,7 +3698,7 @@
"require-dev": {
"phpunit\/phpunit": "^9.5.21"
},
"time": "2022-08-02T19:00:38+00:00",
"time": "2022-08-04T17:04:44+00:00",
"default-branch": true,
"bin": [
"bin\/easy-testing"

File diff suppressed because one or more lines are too long

View File

@ -33,7 +33,7 @@ final class StaticFixtureFinder
return self::yieldFileInfos($fileInfos);
}
/**
* @return Iterator<string, array<int, SplFileInfo>>
* @return Iterator<string, array<int, SmartFileInfo>>
*/
public static function yieldDirectoryWithRelativePathname(string $directory, string $suffix = '*.php.inc') : Iterator
{
@ -41,7 +41,7 @@ final class StaticFixtureFinder
return self::yieldFileInfosWithRelativePathname($fileInfos);
}
/**
* @return Iterator<string, array<int, SplFileInfo>>
* @return Iterator<string, array<int, SmartFileInfo>>
*/
public static function yieldDirectoryExclusivelyWithRelativePathname(string $directory, string $suffix = '*.php.inc') : Iterator
{
@ -64,7 +64,7 @@ final class StaticFixtureFinder
}
/**
* @param SplFileInfo[] $fileInfos
* @return Iterator<string, array<int, SplFileInfo>>
* @return Iterator<string, array<int, SmartFileInfo>>
*/
private static function yieldFileInfosWithRelativePathname(array $fileInfos) : Iterator
{