mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit 6a894b4939070e3e1f62b61a1ce9755203951ac8
6a894b4939
[PHPStan 1.0] Remove sorted union types, now handled by default (#1112)
This commit is contained in:
parent
a94a50e863
commit
31b82ed68d
@ -4,8 +4,8 @@ declare (strict_types=1);
|
||||
namespace Rector\Caching\ValueObject\Storage;
|
||||
|
||||
use FilesystemIterator;
|
||||
use RectorPrefix20211030\Nette\Utils\FileSystem;
|
||||
use RectorPrefix20211030\Nette\Utils\Random;
|
||||
use PHPStan\File\FileWriter;
|
||||
use Rector\Caching\Contract\ValueObject\Storage\CacheStorageInterface;
|
||||
use Rector\Caching\ValueObject\CacheFilePaths;
|
||||
use Rector\Caching\ValueObject\CacheItem;
|
||||
@ -70,7 +70,7 @@ final class FileCacheStorage implements \Rector\Caching\Contract\ValueObject\Sto
|
||||
throw new \RectorPrefix20211030\Symplify\EasyCodingStandard\Caching\Exception\CachingException(\sprintf('Error occurred while saving item %s (%s) to cache: %s', $key, $variableKey, $errorAfter['message']));
|
||||
}
|
||||
// for performance reasons we don't use SmartFileSystem
|
||||
\RectorPrefix20211030\Nette\Utils\FileSystem::write($tmpPath, \sprintf("<?php declare(strict_types = 1);\n\nreturn %s;", $exported));
|
||||
\PHPStan\File\FileWriter::write($tmpPath, \sprintf("<?php declare(strict_types = 1);\n\nreturn %s;", $exported));
|
||||
$renameSuccess = @\rename($tmpPath, $path);
|
||||
if ($renameSuccess) {
|
||||
return;
|
||||
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'e525dad6ab1a005e79b751f4cfb1eaf94ae3c90f';
|
||||
public const PACKAGE_VERSION = '6a894b4939070e3e1f62b61a1ce9755203951ac8';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-10-30 15:59:49';
|
||||
public const RELEASE_DATE = '2021-10-30 13:59:31';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20211030\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit0a61fbcbadc234c6e5133612ee0555f0::getLoader();
|
||||
return ComposerAutoloaderInit41f7cef53e1b66c79de7cc688e7a6244::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 ComposerAutoloaderInit0a61fbcbadc234c6e5133612ee0555f0
|
||||
class ComposerAutoloaderInit41f7cef53e1b66c79de7cc688e7a6244
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInit0a61fbcbadc234c6e5133612ee0555f0
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit0a61fbcbadc234c6e5133612ee0555f0', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit41f7cef53e1b66c79de7cc688e7a6244', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit0a61fbcbadc234c6e5133612ee0555f0', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit41f7cef53e1b66c79de7cc688e7a6244', '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\ComposerStaticInit0a61fbcbadc234c6e5133612ee0555f0::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit41f7cef53e1b66c79de7cc688e7a6244::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,19 +42,19 @@ class ComposerAutoloaderInit0a61fbcbadc234c6e5133612ee0555f0
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit0a61fbcbadc234c6e5133612ee0555f0::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit41f7cef53e1b66c79de7cc688e7a6244::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire0a61fbcbadc234c6e5133612ee0555f0($fileIdentifier, $file);
|
||||
composerRequire41f7cef53e1b66c79de7cc688e7a6244($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire0a61fbcbadc234c6e5133612ee0555f0($fileIdentifier, $file)
|
||||
function composerRequire41f7cef53e1b66c79de7cc688e7a6244($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit0a61fbcbadc234c6e5133612ee0555f0
|
||||
class ComposerStaticInit41f7cef53e1b66c79de7cc688e7a6244
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
@ -3888,9 +3888,9 @@ class ComposerStaticInit0a61fbcbadc234c6e5133612ee0555f0
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit0a61fbcbadc234c6e5133612ee0555f0::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit0a61fbcbadc234c6e5133612ee0555f0::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit0a61fbcbadc234c6e5133612ee0555f0::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit41f7cef53e1b66c79de7cc688e7a6244::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit41f7cef53e1b66c79de7cc688e7a6244::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit41f7cef53e1b66c79de7cc688e7a6244::$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('RectorPrefix20211030\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit0a61fbcbadc234c6e5133612ee0555f0', false) && !interface_exists('ComposerAutoloaderInit0a61fbcbadc234c6e5133612ee0555f0', false) && !trait_exists('ComposerAutoloaderInit0a61fbcbadc234c6e5133612ee0555f0', false)) {
|
||||
spl_autoload_call('RectorPrefix20211030\ComposerAutoloaderInit0a61fbcbadc234c6e5133612ee0555f0');
|
||||
if (!class_exists('ComposerAutoloaderInit41f7cef53e1b66c79de7cc688e7a6244', false) && !interface_exists('ComposerAutoloaderInit41f7cef53e1b66c79de7cc688e7a6244', false) && !trait_exists('ComposerAutoloaderInit41f7cef53e1b66c79de7cc688e7a6244', false)) {
|
||||
spl_autoload_call('RectorPrefix20211030\ComposerAutoloaderInit41f7cef53e1b66c79de7cc688e7a6244');
|
||||
}
|
||||
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('RectorPrefix20211030\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -3306,9 +3306,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20211030\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire0a61fbcbadc234c6e5133612ee0555f0')) {
|
||||
function composerRequire0a61fbcbadc234c6e5133612ee0555f0() {
|
||||
return \RectorPrefix20211030\composerRequire0a61fbcbadc234c6e5133612ee0555f0(...func_get_args());
|
||||
if (!function_exists('composerRequire41f7cef53e1b66c79de7cc688e7a6244')) {
|
||||
function composerRequire41f7cef53e1b66c79de7cc688e7a6244() {
|
||||
return \RectorPrefix20211030\composerRequire41f7cef53e1b66c79de7cc688e7a6244(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user