mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
Updated Rector to commit 303ecc342da1484619c4f875ad67850feeb4b52b
303ecc342d
Remove useless type castings in method (#1678)
This commit is contained in:
parent
7bec35aee9
commit
c502187b4d
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '80882ad1756430e8ecc6d1d547da5848fb5aae88';
|
||||
public const PACKAGE_VERSION = '303ecc342da1484619c4f875ad67850feeb4b52b';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-01-15 09:44:55';
|
||||
public const RELEASE_DATE = '2022-01-15 10:24:51';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20220115\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
@ -21,9 +21,9 @@ final class ShouldNotHappenException extends \Exception
|
||||
private function createDefaultMessageWithLocation() : string
|
||||
{
|
||||
$debugBacktrace = \debug_backtrace();
|
||||
$class = isset($debugBacktrace[2]['class']) ? (string) $debugBacktrace[2]['class'] : null;
|
||||
$function = isset($debugBacktrace[2]['function']) ? (string) $debugBacktrace[2]['function'] : '';
|
||||
$line = isset($debugBacktrace[1]['line']) ? (int) $debugBacktrace[1]['line'] : 0;
|
||||
$class = $debugBacktrace[2]['class'] ?? null;
|
||||
$function = $debugBacktrace[2]['function'];
|
||||
$line = $debugBacktrace[1]['line'] ?? 0;
|
||||
$method = $class !== null ? $class . '::' . $function : $function;
|
||||
return \sprintf('Look at "%s()" on line %d', $method, $line);
|
||||
}
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit2b4d4afefa7d6dc18eae69f959f5106b::getLoader();
|
||||
return ComposerAutoloaderInit6db77e0c70828492f435d65f76a77863::getLoader();
|
||||
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit2b4d4afefa7d6dc18eae69f959f5106b
|
||||
class ComposerAutoloaderInit6db77e0c70828492f435d65f76a77863
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInit2b4d4afefa7d6dc18eae69f959f5106b
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit2b4d4afefa7d6dc18eae69f959f5106b', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit6db77e0c70828492f435d65f76a77863', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit2b4d4afefa7d6dc18eae69f959f5106b', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit6db77e0c70828492f435d65f76a77863', '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\ComposerStaticInit2b4d4afefa7d6dc18eae69f959f5106b::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit6db77e0c70828492f435d65f76a77863::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,12 +42,12 @@ class ComposerAutoloaderInit2b4d4afefa7d6dc18eae69f959f5106b
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit2b4d4afefa7d6dc18eae69f959f5106b::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit6db77e0c70828492f435d65f76a77863::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire2b4d4afefa7d6dc18eae69f959f5106b($fileIdentifier, $file);
|
||||
composerRequire6db77e0c70828492f435d65f76a77863($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -59,7 +59,7 @@ class ComposerAutoloaderInit2b4d4afefa7d6dc18eae69f959f5106b
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire2b4d4afefa7d6dc18eae69f959f5106b($fileIdentifier, $file)
|
||||
function composerRequire6db77e0c70828492f435d65f76a77863($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 ComposerStaticInit2b4d4afefa7d6dc18eae69f959f5106b
|
||||
class ComposerStaticInit6db77e0c70828492f435d65f76a77863
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
@ -3865,9 +3865,9 @@ class ComposerStaticInit2b4d4afefa7d6dc18eae69f959f5106b
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit2b4d4afefa7d6dc18eae69f959f5106b::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit2b4d4afefa7d6dc18eae69f959f5106b::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit2b4d4afefa7d6dc18eae69f959f5106b::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit6db77e0c70828492f435d65f76a77863::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit6db77e0c70828492f435d65f76a77863::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit6db77e0c70828492f435d65f76a77863::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
||||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20220115\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit2b4d4afefa7d6dc18eae69f959f5106b', false) && !interface_exists('ComposerAutoloaderInit2b4d4afefa7d6dc18eae69f959f5106b', false) && !trait_exists('ComposerAutoloaderInit2b4d4afefa7d6dc18eae69f959f5106b', false)) {
|
||||
spl_autoload_call('RectorPrefix20220115\ComposerAutoloaderInit2b4d4afefa7d6dc18eae69f959f5106b');
|
||||
if (!class_exists('ComposerAutoloaderInit6db77e0c70828492f435d65f76a77863', false) && !interface_exists('ComposerAutoloaderInit6db77e0c70828492f435d65f76a77863', false) && !trait_exists('ComposerAutoloaderInit6db77e0c70828492f435d65f76a77863', false)) {
|
||||
spl_autoload_call('RectorPrefix20220115\ComposerAutoloaderInit6db77e0c70828492f435d65f76a77863');
|
||||
}
|
||||
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('RectorPrefix20220115\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -71,9 +71,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20220115\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire2b4d4afefa7d6dc18eae69f959f5106b')) {
|
||||
function composerRequire2b4d4afefa7d6dc18eae69f959f5106b() {
|
||||
return \RectorPrefix20220115\composerRequire2b4d4afefa7d6dc18eae69f959f5106b(...func_get_args());
|
||||
if (!function_exists('composerRequire6db77e0c70828492f435d65f76a77863')) {
|
||||
function composerRequire6db77e0c70828492f435d65f76a77863() {
|
||||
return \RectorPrefix20220115\composerRequire6db77e0c70828492f435d65f76a77863(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user