Skip to content

Commit

Permalink
Updated Rector to commit fee8a47
Browse files Browse the repository at this point in the history
rectorphp/rector-src@fee8a47 [DeadCode] Add Scope check on RemoveParentCallWithoutParentRector (#1603)
  • Loading branch information
TomasVotruba committed Dec 31, 2021
1 parent e732d06 commit 63acd79
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 24 deletions.
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 ComposerAutoloaderInitc37daabab6bee634befe1d9811a217c4::getLoader();
return ComposerAutoloaderInit7f95d6f8769ac232b327ae2167b3f881::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 ComposerAutoloaderInitc37daabab6bee634befe1d9811a217c4
class ComposerAutoloaderInit7f95d6f8769ac232b327ae2167b3f881
{
private static $loader;

Expand All @@ -22,15 +22,15 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInitc37daabab6bee634befe1d9811a217c4', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit7f95d6f8769ac232b327ae2167b3f881', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInitc37daabab6bee634befe1d9811a217c4', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit7f95d6f8769ac232b327ae2167b3f881', '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\ComposerStaticInitc37daabab6bee634befe1d9811a217c4::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit7f95d6f8769ac232b327ae2167b3f881::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
Expand All @@ -42,12 +42,12 @@ public static function getLoader()
$loader->register(true);

if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitc37daabab6bee634befe1d9811a217c4::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit7f95d6f8769ac232b327ae2167b3f881::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequirec37daabab6bee634befe1d9811a217c4($fileIdentifier, $file);
composerRequire7f95d6f8769ac232b327ae2167b3f881($fileIdentifier, $file);
}

return $loader;
Expand All @@ -59,7 +59,7 @@ public static function getLoader()
* @param string $file
* @return void
*/
function composerRequirec37daabab6bee634befe1d9811a217c4($fileIdentifier, $file)
function composerRequire7f95d6f8769ac232b327ae2167b3f881($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
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 ComposerStaticInitc37daabab6bee634befe1d9811a217c4
class ComposerStaticInit7f95d6f8769ac232b327ae2167b3f881
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
Expand Down Expand Up @@ -3845,9 +3845,9 @@ class ComposerStaticInitc37daabab6bee634befe1d9811a217c4
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitc37daabab6bee634befe1d9811a217c4::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitc37daabab6bee634befe1d9811a217c4::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitc37daabab6bee634befe1d9811a217c4::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit7f95d6f8769ac232b327ae2167b3f881::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit7f95d6f8769ac232b327ae2167b3f881::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit7f95d6f8769ac232b327ae2167b3f881::$classMap;

}, null, ClassLoader::class);
}
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2523,12 +2523,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "1e9f0c38fa225cdc534146d145a7fad61848666f"
"reference": "cd2eb3d70f324d0c71bea89d26349f47f5ba6bd2"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/1e9f0c38fa225cdc534146d145a7fad61848666f",
"reference": "1e9f0c38fa225cdc534146d145a7fad61848666f",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/cd2eb3d70f324d0c71bea89d26349f47f5ba6bd2",
"reference": "cd2eb3d70f324d0c71bea89d26349f47f5ba6bd2",
"shasum": ""
},
"require": {
Expand All @@ -2552,7 +2552,7 @@
"symplify\/rule-doc-generator": "^10.0",
"symplify\/vendor-patches": "^10.0"
},
"time": "2021-12-29T23:41:38+00:00",
"time": "2021-12-31T12:15:32+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/installed.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vendor/rector/extension-installer/src/GeneratedConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
final class GeneratedConfig
{
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f601f07'), '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 d65a9b0'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 36d651e'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 96d50d4'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main eb859a5'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3f56f3b'), '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 1e9f0c3'), '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 b92de39'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 0233a19'));
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f601f07'), '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 d65a9b0'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 36d651e'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 96d50d4'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main eb859a5'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 3f56f3b'), '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 cd2eb3d'), '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 b92de39'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 0233a19'));
private function __construct()
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Stmt\Expression;
use Rector\Core\NodeAnalyzer\ClassAnalyzer;
use Rector\Core\Rector\AbstractRector;
use Rector\Core\ValueObject\MethodName;
use Rector\Nette\NodeAnalyzer\StaticCallAnalyzer;
Expand All @@ -34,11 +35,16 @@ final class ConstructClassMethodToSetUpTestCaseRector extends \Rector\Core\Recto
* @var \Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer
*/
private $testsNodeAnalyzer;
public function __construct(\Rector\PHPUnit\NodeManipulator\SetUpClassMethodNodeManipulator $setUpClassMethodNodeManipulator, \Rector\Nette\NodeAnalyzer\StaticCallAnalyzer $staticCallAnalyzer, \Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer $testsNodeAnalyzer)
/**
* @var \Rector\Core\NodeAnalyzer\ClassAnalyzer
*/
private $classAnalyzer;
public function __construct(\Rector\PHPUnit\NodeManipulator\SetUpClassMethodNodeManipulator $setUpClassMethodNodeManipulator, \Rector\Nette\NodeAnalyzer\StaticCallAnalyzer $staticCallAnalyzer, \Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer $testsNodeAnalyzer, \Rector\Core\NodeAnalyzer\ClassAnalyzer $classAnalyzer)
{
$this->setUpClassMethodNodeManipulator = $setUpClassMethodNodeManipulator;
$this->staticCallAnalyzer = $staticCallAnalyzer;
$this->testsNodeAnalyzer = $testsNodeAnalyzer;
$this->classAnalyzer = $classAnalyzer;
}
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
{
Expand Down Expand Up @@ -92,6 +98,9 @@ public function refactor(\PhpParser\Node $node) : ?\PhpParser\Node
if (!$constructClassMethod instanceof \PhpParser\Node\Stmt\ClassMethod) {
return null;
}
if ($this->classAnalyzer->isAnonymousClass($node)) {
return null;
}
$this->removeNode($constructClassMethod);
$addedStmts = $this->resolveStmtsToAddToSetUp($constructClassMethod);
$this->setUpClassMethodNodeManipulator->decorateOrCreate($node, $addedStmts);
Expand Down
10 changes: 5 additions & 5 deletions vendor/scoper-autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
spl_autoload_call('RectorPrefix20211231\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInitc37daabab6bee634befe1d9811a217c4', false) && !interface_exists('ComposerAutoloaderInitc37daabab6bee634befe1d9811a217c4', false) && !trait_exists('ComposerAutoloaderInitc37daabab6bee634befe1d9811a217c4', false)) {
spl_autoload_call('RectorPrefix20211231\ComposerAutoloaderInitc37daabab6bee634befe1d9811a217c4');
if (!class_exists('ComposerAutoloaderInit7f95d6f8769ac232b327ae2167b3f881', false) && !interface_exists('ComposerAutoloaderInit7f95d6f8769ac232b327ae2167b3f881', false) && !trait_exists('ComposerAutoloaderInit7f95d6f8769ac232b327ae2167b3f881', false)) {
spl_autoload_call('RectorPrefix20211231\ComposerAutoloaderInit7f95d6f8769ac232b327ae2167b3f881');
}
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
spl_autoload_call('RectorPrefix20211231\Helmich\TypoScriptParser\Parser\AST\Statement');
Expand Down Expand Up @@ -78,9 +78,9 @@ function print_node() {
return \RectorPrefix20211231\print_node(...func_get_args());
}
}
if (!function_exists('composerRequirec37daabab6bee634befe1d9811a217c4')) {
function composerRequirec37daabab6bee634befe1d9811a217c4() {
return \RectorPrefix20211231\composerRequirec37daabab6bee634befe1d9811a217c4(...func_get_args());
if (!function_exists('composerRequire7f95d6f8769ac232b327ae2167b3f881')) {
function composerRequire7f95d6f8769ac232b327ae2167b3f881() {
return \RectorPrefix20211231\composerRequire7f95d6f8769ac232b327ae2167b3f881(...func_get_args());
}
}
if (!function_exists('scanPath')) {
Expand Down

0 comments on commit 63acd79

Please sign in to comment.