mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 22:08:00 +01:00
Updated Rector to commit bf2f6dd0e9a4b0abccdc345e588f1f713452848b
bf2f6dd0e9
[Php71] Skip iterable on CountOnNullRector (#1691)
This commit is contained in:
parent
741370570f
commit
078050a017
@ -126,6 +126,9 @@ CODE_SAMPLE
|
||||
}
|
||||
private function isAlwaysIterableType(\PHPStan\Type\Type $possibleUnionType) : bool
|
||||
{
|
||||
if ($possibleUnionType->isIterable()->yes()) {
|
||||
return \true;
|
||||
}
|
||||
if (!$possibleUnionType instanceof \PHPStan\Type\UnionType) {
|
||||
return \false;
|
||||
}
|
||||
|
@ -16,11 +16,11 @@ final class VersionResolver
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '7d7edc435c7c0fe95acd6c4c6bd31914c83f9aea';
|
||||
public const PACKAGE_VERSION = 'bf2f6dd0e9a4b0abccdc345e588f1f713452848b';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-01-17 18:04:43';
|
||||
public const RELEASE_DATE = '2022-01-17 12:05:16';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20220117\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 ComposerAutoloaderInit81e22985df5c50b3b6f7475a70999719::getLoader();
|
||||
return ComposerAutoloaderInit45bdedca4f816bd4757927bb4025ea19::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 ComposerAutoloaderInit81e22985df5c50b3b6f7475a70999719
|
||||
class ComposerAutoloaderInit45bdedca4f816bd4757927bb4025ea19
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInit81e22985df5c50b3b6f7475a70999719
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit81e22985df5c50b3b6f7475a70999719', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit45bdedca4f816bd4757927bb4025ea19', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit81e22985df5c50b3b6f7475a70999719', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit45bdedca4f816bd4757927bb4025ea19', '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\ComposerStaticInit81e22985df5c50b3b6f7475a70999719::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit45bdedca4f816bd4757927bb4025ea19::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,12 +42,12 @@ class ComposerAutoloaderInit81e22985df5c50b3b6f7475a70999719
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit81e22985df5c50b3b6f7475a70999719::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit45bdedca4f816bd4757927bb4025ea19::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire81e22985df5c50b3b6f7475a70999719($fileIdentifier, $file);
|
||||
composerRequire45bdedca4f816bd4757927bb4025ea19($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -59,7 +59,7 @@ class ComposerAutoloaderInit81e22985df5c50b3b6f7475a70999719
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire81e22985df5c50b3b6f7475a70999719($fileIdentifier, $file)
|
||||
function composerRequire45bdedca4f816bd4757927bb4025ea19($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 ComposerStaticInit81e22985df5c50b3b6f7475a70999719
|
||||
class ComposerStaticInit45bdedca4f816bd4757927bb4025ea19
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
@ -3867,9 +3867,9 @@ class ComposerStaticInit81e22985df5c50b3b6f7475a70999719
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit81e22985df5c50b3b6f7475a70999719::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit81e22985df5c50b3b6f7475a70999719::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit81e22985df5c50b3b6f7475a70999719::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit45bdedca4f816bd4757927bb4025ea19::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit45bdedca4f816bd4757927bb4025ea19::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit45bdedca4f816bd4757927bb4025ea19::$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('RectorPrefix20220117\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit81e22985df5c50b3b6f7475a70999719', false) && !interface_exists('ComposerAutoloaderInit81e22985df5c50b3b6f7475a70999719', false) && !trait_exists('ComposerAutoloaderInit81e22985df5c50b3b6f7475a70999719', false)) {
|
||||
spl_autoload_call('RectorPrefix20220117\ComposerAutoloaderInit81e22985df5c50b3b6f7475a70999719');
|
||||
if (!class_exists('ComposerAutoloaderInit45bdedca4f816bd4757927bb4025ea19', false) && !interface_exists('ComposerAutoloaderInit45bdedca4f816bd4757927bb4025ea19', false) && !trait_exists('ComposerAutoloaderInit45bdedca4f816bd4757927bb4025ea19', false)) {
|
||||
spl_autoload_call('RectorPrefix20220117\ComposerAutoloaderInit45bdedca4f816bd4757927bb4025ea19');
|
||||
}
|
||||
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('RectorPrefix20220117\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -71,9 +71,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20220117\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire81e22985df5c50b3b6f7475a70999719')) {
|
||||
function composerRequire81e22985df5c50b3b6f7475a70999719() {
|
||||
return \RectorPrefix20220117\composerRequire81e22985df5c50b3b6f7475a70999719(...func_get_args());
|
||||
if (!function_exists('composerRequire45bdedca4f816bd4757927bb4025ea19')) {
|
||||
function composerRequire45bdedca4f816bd4757927bb4025ea19() {
|
||||
return \RectorPrefix20220117\composerRequire45bdedca4f816bd4757927bb4025ea19(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user