mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-21 16:02:23 +02:00
Updated Rector to commit b5f973f768f2bb55ca4b224a58a05eb5817b2cae
b5f973f768
[Strict] Skip @return docblock on BooleanInIfConditionRuleFixerRector (#4609)
This commit is contained in:
parent
1df6d4abb3
commit
279fea6a57
@ -74,7 +74,7 @@ CODE_SAMPLE
|
||||
{
|
||||
$hasChanged = \false;
|
||||
// 1. if
|
||||
$ifCondExprType = $scope->getType($node->cond);
|
||||
$ifCondExprType = $scope->getNativeType($node->cond);
|
||||
$notIdentical = $this->exactCompareFactory->createNotIdenticalFalsyCompare($ifCondExprType, $node->cond, $this->treatAsNonEmpty);
|
||||
if ($notIdentical !== null) {
|
||||
$node->cond = $notIdentical;
|
||||
@ -82,7 +82,7 @@ CODE_SAMPLE
|
||||
}
|
||||
// 2. elseifs
|
||||
foreach ($node->elseifs as $elseif) {
|
||||
$elseifCondExprType = $scope->getType($elseif->cond);
|
||||
$elseifCondExprType = $scope->getNativeType($elseif->cond);
|
||||
$notIdentical = $this->exactCompareFactory->createNotIdenticalFalsyCompare($elseifCondExprType, $elseif->cond, $this->treatAsNonEmpty);
|
||||
if (!$notIdentical instanceof Expr) {
|
||||
continue;
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '65e6caedb37c1d447a4da1992a14b82c5aa41871';
|
||||
public const PACKAGE_VERSION = 'b5f973f768f2bb55ca4b224a58a05eb5817b2cae';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-07-26 21:40:26';
|
||||
public const RELEASE_DATE = '2023-07-26 22:18:53';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitc3ad04fcaf291bdfa1710de93fd08971::getLoader();
|
||||
return ComposerAutoloaderInit390cf93a3f14159e715e57e6829719cb::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitc3ad04fcaf291bdfa1710de93fd08971
|
||||
class ComposerAutoloaderInit390cf93a3f14159e715e57e6829719cb
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInitc3ad04fcaf291bdfa1710de93fd08971
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitc3ad04fcaf291bdfa1710de93fd08971', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit390cf93a3f14159e715e57e6829719cb', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitc3ad04fcaf291bdfa1710de93fd08971', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit390cf93a3f14159e715e57e6829719cb', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitc3ad04fcaf291bdfa1710de93fd08971::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit390cf93a3f14159e715e57e6829719cb::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInitc3ad04fcaf291bdfa1710de93fd08971::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit390cf93a3f14159e715e57e6829719cb::$files;
|
||||
$requireFile = \Closure::bind(static function ($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 ComposerStaticInitc3ad04fcaf291bdfa1710de93fd08971
|
||||
class ComposerStaticInit390cf93a3f14159e715e57e6829719cb
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3023,9 +3023,9 @@ class ComposerStaticInitc3ad04fcaf291bdfa1710de93fd08971
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitc3ad04fcaf291bdfa1710de93fd08971::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitc3ad04fcaf291bdfa1710de93fd08971::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitc3ad04fcaf291bdfa1710de93fd08971::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit390cf93a3f14159e715e57e6829719cb::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit390cf93a3f14159e715e57e6829719cb::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit390cf93a3f14159e715e57e6829719cb::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user