From f83a8feb5d49a738b57f09116c231f5172fa0364 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 20 Aug 2025 17:17:45 +0200 Subject: [PATCH] Fix code style issues --- config/set/php85.php | 2 +- .../Rector/BooleanAnd/SimplifyEmptyArrayCheckRector.php | 3 ++- .../Const_/DeprecatedAnnotationToDeprecatedAttributeRector.php | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/set/php85.php b/config/set/php85.php index 7536382f3b3..3fccf4cfb34 100644 --- a/config/set/php85.php +++ b/config/set/php85.php @@ -7,9 +7,9 @@ use PhpParser\Node\Expr\Cast\Int_; use PhpParser\Node\Expr\Cast\String_; use Rector\Config\RectorConfig; -use Rector\Php85\Rector\Const_\DeprecatedAnnotationToDeprecatedAttributeRector; use Rector\Php85\Rector\ArrayDimFetch\ArrayFirstLastRector; use Rector\Php85\Rector\ClassMethod\NullDebugInfoReturnRector; +use Rector\Php85\Rector\Const_\DeprecatedAnnotationToDeprecatedAttributeRector; use Rector\Php85\Rector\FuncCall\RemoveFinfoBufferContextArgRector; use Rector\Removing\Rector\FuncCall\RemoveFuncCallArgRector; use Rector\Removing\ValueObject\RemoveFuncCallArg; diff --git a/rules/CodeQuality/Rector/BooleanAnd/SimplifyEmptyArrayCheckRector.php b/rules/CodeQuality/Rector/BooleanAnd/SimplifyEmptyArrayCheckRector.php index 76023db65ba..9b403b60cf5 100644 --- a/rules/CodeQuality/Rector/BooleanAnd/SimplifyEmptyArrayCheckRector.php +++ b/rules/CodeQuality/Rector/BooleanAnd/SimplifyEmptyArrayCheckRector.php @@ -97,7 +97,8 @@ function (Node $node): bool { } if (isset($node->getArgs()[0])) { - return $node->getArgs()[0]->value instanceof Variable; + return $node->getArgs()[0] + ->value instanceof Variable; } return false; diff --git a/rules/Php85/Rector/Const_/DeprecatedAnnotationToDeprecatedAttributeRector.php b/rules/Php85/Rector/Const_/DeprecatedAnnotationToDeprecatedAttributeRector.php index b72c6925bc5..d06031cb0c1 100644 --- a/rules/Php85/Rector/Const_/DeprecatedAnnotationToDeprecatedAttributeRector.php +++ b/rules/Php85/Rector/Const_/DeprecatedAnnotationToDeprecatedAttributeRector.php @@ -18,7 +18,6 @@ */ final class DeprecatedAnnotationToDeprecatedAttributeRector extends AbstractRector implements MinPhpVersionInterface { - public function __construct( private readonly DeprecatedAnnotationToDeprecatedAttributeConverter $converter, ) {