Updated Rector to commit 55410904edd98b4a243c12b140cfda9ce171f919

55410904ed Prevent unnecessary IO in tests (#3814)
This commit is contained in:
Tomas Votruba 2023-05-12 11:55:32 +00:00
parent 1b9a810bf5
commit 588cf413f9
6 changed files with 17 additions and 15 deletions

View File

@ -62,11 +62,14 @@ abstract class AbstractTestCase extends TestCase
*/
private function createConfigsHash(array $configFiles) : string
{
Assert::allFile($configFiles);
Assert::allString($configFiles);
$configHash = '';
foreach ($configFiles as $configFile) {
$configHash .= \md5_file($configFile);
$hash = \md5_file($configFile);
if ($hash === \false) {
throw new ShouldNotHappenException(\sprintf('File %s is not readable', $configFile));
}
$configHash .= $hash;
}
return $configHash;
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '52295356ab5e31c2226f6ff96984bb08b7529937';
public const PACKAGE_VERSION = '55410904edd98b4a243c12b140cfda9ce171f919';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-05-12 11:59:35';
public const RELEASE_DATE = '2023-05-12 11:51:37';
/**
* @var int
*/

View File

@ -26,7 +26,6 @@ final class ContainerBuilderFactory
{
Assert::allIsAOf($compilerPasses, CompilerPassInterface::class);
Assert::allString($configFiles);
Assert::allFile($configFiles);
$containerBuilder = new ContainerBuilder();
$this->registerConfigFiles($containerBuilder, $configFiles);
foreach ($compilerPasses as $compilerPass) {

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit61a3082ab109f60db75f3ca7e26df898
class ComposerAutoloaderInit94c8acb2c19b7c58c44e4dea6595c0d4
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit61a3082ab109f60db75f3ca7e26df898
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit61a3082ab109f60db75f3ca7e26df898', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit94c8acb2c19b7c58c44e4dea6595c0d4', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit61a3082ab109f60db75f3ca7e26df898', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit94c8acb2c19b7c58c44e4dea6595c0d4', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit61a3082ab109f60db75f3ca7e26df898::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit94c8acb2c19b7c58c44e4dea6595c0d4::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit61a3082ab109f60db75f3ca7e26df898::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit94c8acb2c19b7c58c44e4dea6595c0d4::$files;
$requireFile = \Closure::bind(static function ($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 ComposerStaticInit61a3082ab109f60db75f3ca7e26df898
class ComposerStaticInit94c8acb2c19b7c58c44e4dea6595c0d4
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3109,9 +3109,9 @@ class ComposerStaticInit61a3082ab109f60db75f3ca7e26df898
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit61a3082ab109f60db75f3ca7e26df898::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit61a3082ab109f60db75f3ca7e26df898::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit61a3082ab109f60db75f3ca7e26df898::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit94c8acb2c19b7c58c44e4dea6595c0d4::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit94c8acb2c19b7c58c44e4dea6595c0d4::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit94c8acb2c19b7c58c44e4dea6595c0d4::$classMap;
}, null, ClassLoader::class);
}