Updated Rector to commit 223ad8fca8280a298b02dce0226b91269e3b3535

223ad8fca8 fix ClassTypeResolverTest on windows (#118)
This commit is contained in:
Tomas Votruba 2021-05-30 07:55:27 +00:00
parent 13cd834559
commit 56b8376664
6 changed files with 21 additions and 22 deletions

View File

@ -21,9 +21,8 @@ final class AnnotationExtractor
if (!\is_string($docComment)) {
return null;
}
// @see https://3v4l.org/ouYfB
// uses 'r?\n' instead of '$' because windows compat
$pattern = '#' . \preg_quote($annotation, '#') . '\\s+(?<content>.*?)\\r?\\n#m';
// @see https://regex101.com/r/oYGaWU/1
$pattern = '#' . \preg_quote($annotation, '#') . '\\s+(?<content>.*?)$#m';
$matches = \RectorPrefix20210530\Nette\Utils\Strings::match($docComment, $pattern);
return $matches['content'] ?? null;
}

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = 'b42fc3dcbd04bdf5b1512e2f4f7d29645261bae8';
public const PACKAGE_VERSION = '223ad8fca8280a298b02dce0226b91269e3b3535';
/**
* @var string
*/
public const RELEASE_DATE = '2021-05-30 09:43:12';
public const RELEASE_DATE = '2021-05-30 09:42:32';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20210530\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643::getLoader();
return ComposerAutoloaderInitb3c3f0bc3b39123d94667d6b15846367::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643
class ComposerAutoloaderInitb3c3f0bc3b39123d94667d6b15846367
{
private static $loader;
@ -22,15 +22,15 @@ class ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitb3c3f0bc3b39123d94667d6b15846367', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitb3c3f0bc3b39123d94667d6b15846367', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit772a103bfffd8af1598b647ccbc91643::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitb3c3f0bc3b39123d94667d6b15846367::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -42,19 +42,19 @@ class ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit772a103bfffd8af1598b647ccbc91643::$files;
$includeFiles = Composer\Autoload\ComposerStaticInitb3c3f0bc3b39123d94667d6b15846367::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire772a103bfffd8af1598b647ccbc91643($fileIdentifier, $file);
composerRequireb3c3f0bc3b39123d94667d6b15846367($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequire772a103bfffd8af1598b647ccbc91643($fileIdentifier, $file)
function composerRequireb3c3f0bc3b39123d94667d6b15846367($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit772a103bfffd8af1598b647ccbc91643
class ComposerStaticInitb3c3f0bc3b39123d94667d6b15846367
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
@ -3824,9 +3824,9 @@ class ComposerStaticInit772a103bfffd8af1598b647ccbc91643
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit772a103bfffd8af1598b647ccbc91643::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit772a103bfffd8af1598b647ccbc91643::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit772a103bfffd8af1598b647ccbc91643::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitb3c3f0bc3b39123d94667d6b15846367::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb3c3f0bc3b39123d94667d6b15846367::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitb3c3f0bc3b39123d94667d6b15846367::$classMap;
}, null, ClassLoader::class);
}

View File

@ -21,8 +21,8 @@ if (!class_exists('SomeTestCase', false) && !interface_exists('SomeTestCase', fa
if (!class_exists('CheckoutEntityFactory', false) && !interface_exists('CheckoutEntityFactory', false) && !trait_exists('CheckoutEntityFactory', false)) {
spl_autoload_call('RectorPrefix20210530\CheckoutEntityFactory');
}
if (!class_exists('ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643', false) && !interface_exists('ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643', false) && !trait_exists('ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643', false)) {
spl_autoload_call('RectorPrefix20210530\ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643');
if (!class_exists('ComposerAutoloaderInitb3c3f0bc3b39123d94667d6b15846367', false) && !interface_exists('ComposerAutoloaderInitb3c3f0bc3b39123d94667d6b15846367', false) && !trait_exists('ComposerAutoloaderInitb3c3f0bc3b39123d94667d6b15846367', false)) {
spl_autoload_call('RectorPrefix20210530\ComposerAutoloaderInitb3c3f0bc3b39123d94667d6b15846367');
}
if (!class_exists('Doctrine\Inflector\Inflector', false) && !interface_exists('Doctrine\Inflector\Inflector', false) && !trait_exists('Doctrine\Inflector\Inflector', false)) {
spl_autoload_call('RectorPrefix20210530\Doctrine\Inflector\Inflector');
@ -3320,9 +3320,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20210530\print_node(...func_get_args());
}
}
if (!function_exists('composerRequire772a103bfffd8af1598b647ccbc91643')) {
function composerRequire772a103bfffd8af1598b647ccbc91643() {
return \RectorPrefix20210530\composerRequire772a103bfffd8af1598b647ccbc91643(...func_get_args());
if (!function_exists('composerRequireb3c3f0bc3b39123d94667d6b15846367')) {
function composerRequireb3c3f0bc3b39123d94667d6b15846367() {
return \RectorPrefix20210530\composerRequireb3c3f0bc3b39123d94667d6b15846367(...func_get_args());
}
}
if (!function_exists('parseArgs')) {