From 8027a18b9e62fcf3ead68226ad2d0a8bda151302 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 6 Nov 2023 09:18:43 +0000 Subject: [PATCH] Updated Rector to commit 6d8074534f3b568a0cecd373e584ea6c8d06580b https://github.com/rectorphp/rector-src/commit/6d8074534f3b568a0cecd373e584ea6c8d06580b Rectify (#5226) --- .../Rector/If_/NullableCompareToNullRector.php | 11 +---------- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/rules/CodingStyle/Rector/If_/NullableCompareToNullRector.php b/rules/CodingStyle/Rector/If_/NullableCompareToNullRector.php index 2ff8882853d..cb7540e308f 100644 --- a/rules/CodingStyle/Rector/If_/NullableCompareToNullRector.php +++ b/rules/CodingStyle/Rector/If_/NullableCompareToNullRector.php @@ -9,12 +9,6 @@ use PhpParser\Node\Expr\BinaryOp\Identical; use PhpParser\Node\Expr\BinaryOp\NotIdentical; use PhpParser\Node\Expr\BooleanNot; use PhpParser\Node\Stmt\If_; -use PHPStan\Type\BooleanType; -use PHPStan\Type\FloatType; -use PHPStan\Type\IntegerType; -use PHPStan\Type\MixedType; -use PHPStan\Type\NullType; -use PHPStan\Type\StringType; use PHPStan\Type\TypeCombinator; use PHPStan\Type\UnionType; use Rector\Core\Rector\AbstractRector; @@ -84,9 +78,6 @@ CODE_SAMPLE } } $nativeType = TypeCombinator::removeNull($nativeType); - if ($nativeType->isScalar()->yes()) { - return \false; - } - return \true; + return !$nativeType->isScalar()->yes(); } } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 1e3a4f87e0e..7b375c08815 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '7607b334736d241820f9f307423f6050801b46af'; + public const PACKAGE_VERSION = '6d8074534f3b568a0cecd373e584ea6c8d06580b'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-11-06 16:09:43'; + public const RELEASE_DATE = '2023-11-06 16:15:19'; /** * @var int */