Skip to content

Commit

Permalink
Updated Rector to commit eac5313
Browse files Browse the repository at this point in the history
rectorphp/rector-src@eac5313 [DeadCode] Fix remove unreachable after mark test skipped (#1601)
  • Loading branch information
TomasVotruba committed Dec 31, 2021
1 parent fd3e742 commit b88b7fa
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private function isUnreachable(\PhpParser\Node\Stmt $stmt) : bool
private function isAfterMarkTestSkippedMethodCall(\PhpParser\Node\Stmt $stmt) : bool
{
return (bool) $this->betterNodeFinder->findFirstPrevious($stmt, function (\PhpParser\Node $node) : bool {
if (!$node instanceof \PhpParser\Node\Expr\MethodCall) {
if (!$node instanceof \PhpParser\Node\Expr\MethodCall && !$node instanceof \PhpParser\Node\Expr\StaticCall) {
return \false;
}
if ($node->name instanceof \PhpParser\Node\Expr\MethodCall) {
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 = '4399f28ee1aeec1bfe4446a97d741cee60c5eaf5';
public const PACKAGE_VERSION = 'eac5313f26a57e418ef66e55028319b339065d49';
/**
* @var string
*/
public const RELEASE_DATE = '2021-12-31 11:23:19';
public const RELEASE_DATE = '2021-12-31 11:27:55';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20211231\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 ComposerAutoloaderInite97b4cfe3136a985b3f861761a5bbc76::getLoader();
return ComposerAutoloaderInit7b25b43030d1b0f39f17634532dbba66::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 ComposerAutoloaderInite97b4cfe3136a985b3f861761a5bbc76
class ComposerAutoloaderInit7b25b43030d1b0f39f17634532dbba66
{
private static $loader;

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

spl_autoload_register(array('ComposerAutoloaderInite97b4cfe3136a985b3f861761a5bbc76', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit7b25b43030d1b0f39f17634532dbba66', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInite97b4cfe3136a985b3f861761a5bbc76', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit7b25b43030d1b0f39f17634532dbba66', '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\ComposerStaticInite97b4cfe3136a985b3f861761a5bbc76::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit7b25b43030d1b0f39f17634532dbba66::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\ComposerStaticInite97b4cfe3136a985b3f861761a5bbc76::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit7b25b43030d1b0f39f17634532dbba66::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequiree97b4cfe3136a985b3f861761a5bbc76($fileIdentifier, $file);
composerRequire7b25b43030d1b0f39f17634532dbba66($fileIdentifier, $file);
}

return $loader;
Expand All @@ -59,7 +59,7 @@ public static function getLoader()
* @param string $file
* @return void
*/
function composerRequiree97b4cfe3136a985b3f861761a5bbc76($fileIdentifier, $file)
function composerRequire7b25b43030d1b0f39f17634532dbba66($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 ComposerStaticInite97b4cfe3136a985b3f861761a5bbc76
class ComposerStaticInit7b25b43030d1b0f39f17634532dbba66
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
Expand Down Expand Up @@ -3845,9 +3845,9 @@ class ComposerStaticInite97b4cfe3136a985b3f861761a5bbc76
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInite97b4cfe3136a985b3f861761a5bbc76::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInite97b4cfe3136a985b3f861761a5bbc76::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInite97b4cfe3136a985b3f861761a5bbc76::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit7b25b43030d1b0f39f17634532dbba66::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit7b25b43030d1b0f39f17634532dbba66::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit7b25b43030d1b0f39f17634532dbba66::$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 @@ -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('ComposerAutoloaderInite97b4cfe3136a985b3f861761a5bbc76', false) && !interface_exists('ComposerAutoloaderInite97b4cfe3136a985b3f861761a5bbc76', false) && !trait_exists('ComposerAutoloaderInite97b4cfe3136a985b3f861761a5bbc76', false)) {
spl_autoload_call('RectorPrefix20211231\ComposerAutoloaderInite97b4cfe3136a985b3f861761a5bbc76');
if (!class_exists('ComposerAutoloaderInit7b25b43030d1b0f39f17634532dbba66', false) && !interface_exists('ComposerAutoloaderInit7b25b43030d1b0f39f17634532dbba66', false) && !trait_exists('ComposerAutoloaderInit7b25b43030d1b0f39f17634532dbba66', false)) {
spl_autoload_call('RectorPrefix20211231\ComposerAutoloaderInit7b25b43030d1b0f39f17634532dbba66');
}
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('composerRequiree97b4cfe3136a985b3f861761a5bbc76')) {
function composerRequiree97b4cfe3136a985b3f861761a5bbc76() {
return \RectorPrefix20211231\composerRequiree97b4cfe3136a985b3f861761a5bbc76(...func_get_args());
if (!function_exists('composerRequire7b25b43030d1b0f39f17634532dbba66')) {
function composerRequire7b25b43030d1b0f39f17634532dbba66() {
return \RectorPrefix20211231\composerRequire7b25b43030d1b0f39f17634532dbba66(...func_get_args());
}
}
if (!function_exists('scanPath')) {
Expand Down

0 comments on commit b88b7fa

Please sign in to comment.