mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-11 19:11:57 +02:00
Updated Rector to commit 7433ffeb07507632659635152b35af66320d1e07
7433ffeb07
[Printer] Reduce regex for end with \n detection on BetterStandardPrinter (#4957)
This commit is contained in:
parent
5b0f55fa4b
commit
96a2988a43
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitf4f973c096f2acc6e1fe12c03977cab2::getLoader();
|
||||
return ComposerAutoloaderInitb7a2a13fd9b0c6bc282aa539d784649d::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitf4f973c096f2acc6e1fe12c03977cab2
|
||||
class ComposerAutoloaderInitb7a2a13fd9b0c6bc282aa539d784649d
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInitf4f973c096f2acc6e1fe12c03977cab2
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitf4f973c096f2acc6e1fe12c03977cab2', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb7a2a13fd9b0c6bc282aa539d784649d', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitf4f973c096f2acc6e1fe12c03977cab2', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb7a2a13fd9b0c6bc282aa539d784649d', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitf4f973c096f2acc6e1fe12c03977cab2::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb7a2a13fd9b0c6bc282aa539d784649d::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitf4f973c096f2acc6e1fe12c03977cab2::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitb7a2a13fd9b0c6bc282aa539d784649d::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitf4f973c096f2acc6e1fe12c03977cab2
|
||||
class ComposerStaticInitb7a2a13fd9b0c6bc282aa539d784649d
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -2599,9 +2599,9 @@ class ComposerStaticInitf4f973c096f2acc6e1fe12c03977cab2
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitf4f973c096f2acc6e1fe12c03977cab2::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitf4f973c096f2acc6e1fe12c03977cab2::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitf4f973c096f2acc6e1fe12c03977cab2::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb7a2a13fd9b0c6bc282aa539d784649d::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb7a2a13fd9b0c6bc282aa539d784649d::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitb7a2a13fd9b0c6bc282aa539d784649d::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -1872,12 +1872,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
|
||||
"reference": "d163fa907e8f2c48656565bcb1647403a3368141"
|
||||
"reference": "2800f5c374cffc20cbdfb221ce033b46a3a8003d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/d163fa907e8f2c48656565bcb1647403a3368141",
|
||||
"reference": "d163fa907e8f2c48656565bcb1647403a3368141",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/2800f5c374cffc20cbdfb221ce033b46a3a8003d",
|
||||
"reference": "2800f5c374cffc20cbdfb221ce033b46a3a8003d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -1907,7 +1907,7 @@
|
||||
"tomasvotruba\/unused-public": "^0.3",
|
||||
"tracy\/tracy": "^2.10"
|
||||
},
|
||||
"time": "2023-09-09T22:25:34+00:00",
|
||||
"time": "2023-09-10T01:16:20+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
|
||||
*/
|
||||
final class GeneratedConfig
|
||||
{
|
||||
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main aecc9c7'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main fa41cc7'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main d163fa9'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main d4f8c9d'));
|
||||
public const EXTENSIONS = array('rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => NULL, 'version' => 'dev-main aecc9c7'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => NULL, 'version' => 'dev-main fa41cc7'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => NULL, 'version' => 'dev-main 2800f5c'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => NULL, 'version' => 'dev-main d4f8c9d'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
declare (strict_types=1);
|
||||
namespace Rector\PHPUnit\NodeAnalyzer;
|
||||
|
||||
use PhpParser\Node\Identifier;
|
||||
use PhpParser\Node\Stmt\ClassMethod;
|
||||
use Rector\Core\PhpParser\AstResolver;
|
||||
use Rector\Core\ValueObject\MethodName;
|
||||
@ -31,6 +32,10 @@ final class SetUpMethodDecorator
|
||||
if (!$setUpClassMethod instanceof ClassMethod) {
|
||||
return;
|
||||
}
|
||||
$classMethod->returnType = $setUpClassMethod->returnType;
|
||||
if ($setUpClassMethod->returnType instanceof Identifier) {
|
||||
$classMethod->returnType = new Identifier($setUpClassMethod->returnType->toString());
|
||||
return;
|
||||
}
|
||||
$classMethod->returnType = null;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user