Skip to content

Commit

Permalink
Updated Rector to commit b42fc3d
Browse files Browse the repository at this point in the history
rectorphp/rector-src@b42fc3d AnnotationExtractor: fix tests on windows (#111)
  • Loading branch information
TomasVotruba committed May 30, 2021
1 parent d6ce660 commit 13cd834
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 21 deletions.
5 changes: 3 additions & 2 deletions packages/ChangesReporting/Annotation/AnnotationExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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+(?<content>.*?)$#m';
// @see https://3v4l.org/ouYfB
// uses 'r?\n' instead of '$' because windows compat
$pattern = '#' . \preg_quote($annotation, '#') . '\\s+(?<content>.*?)\\r?\\n#m';
$matches = \RectorPrefix20210530\Nette\Utils\Strings::match($docComment, $pattern);
return $matches['content'] ?? null;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit5cde601ff838857f9265eec243ee0c58::getLoader();
return ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643::getLoader();
14 changes: 7 additions & 7 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit5cde601ff838857f9265eec243ee0c58
class ComposerAutoloaderInit772a103bfffd8af1598b647ccbc91643
{
private static $loader;

Expand All @@ -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) {
Expand All @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit5cde601ff838857f9265eec243ee0c58
class ComposerStaticInit772a103bfffd8af1598b647ccbc91643
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
Expand Down Expand Up @@ -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);
}
Expand Down
10 changes: 5 additions & 5 deletions vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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')) {
Expand Down

0 comments on commit 13cd834

Please sign in to comment.