mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-31 12:42:05 +01:00
Updated Rector to commit 9ec3967a5bb51519dec381255b7c6c0659a41d6e
9ec3967a5b
Restore paratest (#3335)
This commit is contained in:
parent
bf9c351bb7
commit
02965e2a27
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 ComposerAutoloaderInit80fc804ad18dcc67d7366201ab2fa596::getLoader();
|
||||
return ComposerAutoloaderInit29917e45fdeb39117300701ba9bcd044::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 ComposerAutoloaderInit80fc804ad18dcc67d7366201ab2fa596
|
||||
class ComposerAutoloaderInit29917e45fdeb39117300701ba9bcd044
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInit80fc804ad18dcc67d7366201ab2fa596
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit80fc804ad18dcc67d7366201ab2fa596', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit29917e45fdeb39117300701ba9bcd044', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit80fc804ad18dcc67d7366201ab2fa596', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit29917e45fdeb39117300701ba9bcd044', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit80fc804ad18dcc67d7366201ab2fa596::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit29917e45fdeb39117300701ba9bcd044::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit80fc804ad18dcc67d7366201ab2fa596::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit29917e45fdeb39117300701ba9bcd044::$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 ComposerStaticInit80fc804ad18dcc67d7366201ab2fa596
|
||||
class ComposerStaticInit29917e45fdeb39117300701ba9bcd044
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3086,9 +3086,9 @@ class ComposerStaticInit80fc804ad18dcc67d7366201ab2fa596
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit80fc804ad18dcc67d7366201ab2fa596::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit80fc804ad18dcc67d7366201ab2fa596::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit80fc804ad18dcc67d7366201ab2fa596::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit29917e45fdeb39117300701ba9bcd044::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit29917e45fdeb39117300701ba9bcd044::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit29917e45fdeb39117300701ba9bcd044::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
24
vendor/composer/installed.json
vendored
24
vendor/composer/installed.json
vendored
@ -2059,12 +2059,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
|
||||
"reference": "512ed855037439516baad4298790a58a4db7e0ed"
|
||||
"reference": "494253872e5efc079cc92036e4e700b0970e1a27"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/512ed855037439516baad4298790a58a4db7e0ed",
|
||||
"reference": "512ed855037439516baad4298790a58a4db7e0ed",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/494253872e5efc079cc92036e4e700b0970e1a27",
|
||||
"reference": "494253872e5efc079cc92036e4e700b0970e1a27",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -2090,7 +2090,7 @@
|
||||
"symplify\/rule-doc-generator": "^11.1.25",
|
||||
"symplify\/vendor-patches": "^11.2.0.72"
|
||||
},
|
||||
"time": "2023-02-03T18:23:36+00:00",
|
||||
"time": "2023-02-05T09:37:23+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
@ -3037,22 +3037,22 @@
|
||||
},
|
||||
{
|
||||
"name": "symplify\/easy-parallel",
|
||||
"version": "11.1.26",
|
||||
"version_normalized": "11.1.26.0",
|
||||
"version": "11.1.27",
|
||||
"version_normalized": "11.1.27.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/symplify\/easy-parallel.git",
|
||||
"reference": "3d1ddf32996f79d930883b03795306961546941b"
|
||||
"reference": "28911142f6a0f4127271f745e2403bb84fcd2b87"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/easy-parallel\/zipball\/3d1ddf32996f79d930883b03795306961546941b",
|
||||
"reference": "3d1ddf32996f79d930883b03795306961546941b",
|
||||
"url": "https:\/\/api.github.com\/repos\/symplify\/easy-parallel\/zipball\/28911142f6a0f4127271f745e2403bb84fcd2b87",
|
||||
"reference": "28911142f6a0f4127271f745e2403bb84fcd2b87",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"clue\/ndjson-react": "^1.3",
|
||||
"fidry\/cpu-core-counter": "^0.4.0",
|
||||
"fidry\/cpu-core-counter": "^0.4.0 || ^0.5.1",
|
||||
"php": ">=8.1",
|
||||
"react\/child-process": "^0.6.5",
|
||||
"react\/event-loop": "^1.3",
|
||||
@ -3071,7 +3071,7 @@
|
||||
"symplify\/symplify-kernel": "^11.2",
|
||||
"tomasvotruba\/unused-public": "^0.0.34"
|
||||
},
|
||||
"time": "2023-02-04T14:33:34+00:00",
|
||||
"time": "2023-02-04T15:19:23+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
@ -3091,7 +3091,7 @@
|
||||
"description": "Helper package for easier CLI project parallelization",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/symplify\/easy-parallel\/issues",
|
||||
"source": "https:\/\/github.com\/symplify\/easy-parallel\/tree\/11.1.26"
|
||||
"source": "https:\/\/github.com\/symplify\/easy-parallel\/tree\/11.1.27"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
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' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main ea9cf46'), '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' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 46346e2'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9639ef9'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 512ed85'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main dabd988'));
|
||||
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' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main ea9cf46'), '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' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 46346e2'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9639ef9'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 4942538'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main dabd988'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ use PhpParser\Node\Stmt\ClassMethod;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\GenericTagValueNode;
|
||||
use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagNode;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Php80\NodeAnalyzer\PhpAttributeAnalyzer;
|
||||
use Rector\PHPUnit\NodeAnalyzer\AssertCallAnalyzer;
|
||||
use Rector\PHPUnit\NodeAnalyzer\MockedVariableAnalyzer;
|
||||
use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer;
|
||||
@ -36,11 +37,17 @@ final class AddDoesNotPerformAssertionToNonAssertingTestRector extends AbstractR
|
||||
* @var \Rector\PHPUnit\NodeAnalyzer\MockedVariableAnalyzer
|
||||
*/
|
||||
private $mockedVariableAnalyzer;
|
||||
public function __construct(TestsNodeAnalyzer $testsNodeAnalyzer, AssertCallAnalyzer $assertCallAnalyzer, MockedVariableAnalyzer $mockedVariableAnalyzer)
|
||||
/**
|
||||
* @readonly
|
||||
* @var \Rector\Php80\NodeAnalyzer\PhpAttributeAnalyzer
|
||||
*/
|
||||
private $phpAttributeAnalyzer;
|
||||
public function __construct(TestsNodeAnalyzer $testsNodeAnalyzer, AssertCallAnalyzer $assertCallAnalyzer, MockedVariableAnalyzer $mockedVariableAnalyzer, PhpAttributeAnalyzer $phpAttributeAnalyzer)
|
||||
{
|
||||
$this->testsNodeAnalyzer = $testsNodeAnalyzer;
|
||||
$this->assertCallAnalyzer = $assertCallAnalyzer;
|
||||
$this->mockedVariableAnalyzer = $mockedVariableAnalyzer;
|
||||
$this->phpAttributeAnalyzer = $phpAttributeAnalyzer;
|
||||
}
|
||||
public function getRuleDefinition() : RuleDefinition
|
||||
{
|
||||
@ -104,6 +111,9 @@ CODE_SAMPLE
|
||||
if ($phpDocInfo->hasByNames(['doesNotPerformAssertions', 'expectedException'])) {
|
||||
return \true;
|
||||
}
|
||||
if ($this->phpAttributeAnalyzer->hasPhpAttribute($classMethod, 'PHPUnit\\Framework\\Attributes\\DoesNotPerformAssertions')) {
|
||||
return \true;
|
||||
}
|
||||
$this->assertCallAnalyzer->resetNesting();
|
||||
if ($this->assertCallAnalyzer->containsAssertCall($classMethod)) {
|
||||
return \true;
|
||||
|
2
vendor/symplify/easy-parallel/composer.json
vendored
2
vendor/symplify/easy-parallel/composer.json
vendored
@ -9,7 +9,7 @@
|
||||
"react\/event-loop": "^1.3",
|
||||
"react\/socket": "^1.12",
|
||||
"symfony\/console": "^6.2",
|
||||
"fidry\/cpu-core-counter": "^0.4.0"
|
||||
"fidry\/cpu-core-counter": "^0.4.0 || ^0.5.1"
|
||||
},
|
||||
"require-dev": {
|
||||
"symplify\/package-builder": "^11.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user