diff --git a/packages/ChangesReporting/Annotation/AnnotationExtractor.php b/packages/ChangesReporting/Annotation/AnnotationExtractor.php index 6e6484f00897..c37e675f1bbe 100644 --- a/packages/ChangesReporting/Annotation/AnnotationExtractor.php +++ b/packages/ChangesReporting/Annotation/AnnotationExtractor.php @@ -21,8 +21,9 @@ public function extractAnnotationFromClass(string $className, string $annotation if (!\is_string($docComment)) { return null; } - // @see https://regex101.com/r/oYGaWU/1 - $pattern = '#' . \preg_quote($annotation, '#') . '\\s+(?.*?)$#m'; + // @see https://3v4l.org/ouYfB + // uses 'r?\n' instead of '$' because windows compat + $pattern = '#' . \preg_quote($annotation, '#') . '\\s+(?.*?)\\r?\\n#m'; $matches = \RectorPrefix20210530\Nette\Utils\Strings::match($docComment, $pattern); return $matches['content'] ?? null; } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 2e44b9bef933..11f54af42ff6 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -16,11 +16,11 @@ final class VersionResolver /** * @var string */ - public const PACKAGE_VERSION = '0864547a0d40d286201d03a0ba2b703ff2554f55'; + public const PACKAGE_VERSION = 'b42fc3dcbd04bdf5b1512e2f4f7d29645261bae8'; /** * @var string */ - public const RELEASE_DATE = '2021-05-30 09:41:13'; + public const RELEASE_DATE = '2021-05-30 09:43:12'; public static function resolvePackageVersion() : string { $process = new \RectorPrefix20210530\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__); diff --git a/vendor/autoload.php b/vendor/autoload.php index 231c1c21d333..480db9056939 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit5cde601ff838857f9265eec243ee0c58::getLoader(); +return ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index cd3fc622948a..fc2e1fdb7fe1 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit5cde601ff838857f9265eec243ee0c58 +class ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643 { private static $loader; @@ -22,15 +22,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit5cde601ff838857f9265eec243ee0c58', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); - spl_autoload_unregister(array('ComposerAutoloaderInit5cde601ff838857f9265eec243ee0c58', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643', '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\ComposerStaticInit5cde601ff838857f9265eec243ee0c58::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit772a103bfffd8af1598b647ccbc91643::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { @@ -42,19 +42,19 @@ public static function getLoader() $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInit5cde601ff838857f9265eec243ee0c58::$files; + $includeFiles = Composer\Autoload\ComposerStaticInit772a103bfffd8af1598b647ccbc91643::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire5cde601ff838857f9265eec243ee0c58($fileIdentifier, $file); + composerRequire772a103bfffd8af1598b647ccbc91643($fileIdentifier, $file); } return $loader; } } -function composerRequire5cde601ff838857f9265eec243ee0c58($fileIdentifier, $file) +function composerRequire772a103bfffd8af1598b647ccbc91643($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index d339a51f88b4..f2729d3233f1 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit5cde601ff838857f9265eec243ee0c58 +class ComposerStaticInit772a103bfffd8af1598b647ccbc91643 { public static $files = array ( 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', @@ -3824,9 +3824,9 @@ class ComposerStaticInit5cde601ff838857f9265eec243ee0c58 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit5cde601ff838857f9265eec243ee0c58::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit5cde601ff838857f9265eec243ee0c58::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit5cde601ff838857f9265eec243ee0c58::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit772a103bfffd8af1598b647ccbc91643::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit772a103bfffd8af1598b647ccbc91643::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit772a103bfffd8af1598b647ccbc91643::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/scoper-autoload.php b/vendor/scoper-autoload.php index 6503870cca52..267016e0570a 100644 --- a/vendor/scoper-autoload.php +++ b/vendor/scoper-autoload.php @@ -21,8 +21,8 @@ if (!class_exists('CheckoutEntityFactory', false) && !interface_exists('CheckoutEntityFactory', false) && !trait_exists('CheckoutEntityFactory', false)) { spl_autoload_call('RectorPrefix20210530\CheckoutEntityFactory'); } -if (!class_exists('ComposerAutoloaderInit5cde601ff838857f9265eec243ee0c58', false) && !interface_exists('ComposerAutoloaderInit5cde601ff838857f9265eec243ee0c58', false) && !trait_exists('ComposerAutoloaderInit5cde601ff838857f9265eec243ee0c58', false)) { - spl_autoload_call('RectorPrefix20210530\ComposerAutoloaderInit5cde601ff838857f9265eec243ee0c58'); +if (!class_exists('ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643', false) && !interface_exists('ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643', false) && !trait_exists('ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643', false)) { + spl_autoload_call('RectorPrefix20210530\ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643'); } 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 @@ function print_node() { return \RectorPrefix20210530\print_node(...func_get_args()); } } -if (!function_exists('composerRequire5cde601ff838857f9265eec243ee0c58')) { - function composerRequire5cde601ff838857f9265eec243ee0c58() { - return \RectorPrefix20210530\composerRequire5cde601ff838857f9265eec243ee0c58(...func_get_args()); +if (!function_exists('composerRequire772a103bfffd8af1598b647ccbc91643')) { + function composerRequire772a103bfffd8af1598b647ccbc91643() { + return \RectorPrefix20210530\composerRequire772a103bfffd8af1598b647ccbc91643(...func_get_args()); } } if (!function_exists('parseArgs')) {