Skip to content

Commit 00b9fe2

Browse files
committed
Updated Rector to commit 1d141d573432ebc152383bf884f488dc62619f0c
rectorphp/rector-src@1d141d5 [PhpParser] Add Stmt\Block to NodeGroup::STMTS_AWARE (#7689)
1 parent 8d6ed67 commit 00b9fe2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Application/NodeAttributeReIndexer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use PhpParser\Node\Expr\NullsafeMethodCall;
1313
use PhpParser\Node\Expr\StaticCall;
1414
use PhpParser\Node\FunctionLike;
15-
use PhpParser\Node\Stmt\Block;
1615
use PhpParser\Node\Stmt\ClassLike;
1716
use PhpParser\Node\Stmt\ClassMethod;
1817
use PhpParser\Node\Stmt\Declare_;
@@ -56,7 +55,7 @@ public static function reIndexNodeAttributes(Node $node): ?Node
5655
}
5756
private static function reIndexStmtsKeys(Node $node): ?Node
5857
{
59-
if (!NodeGroup::isStmtAwareNode($node) && !$node instanceof ClassLike && !$node instanceof Declare_ && !$node instanceof Block) {
58+
if (!NodeGroup::isStmtAwareNode($node) && !$node instanceof ClassLike && !$node instanceof Declare_) {
6059
return null;
6160
}
6261
Assert::propertyExists($node, 'stmts');

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = 'd8e4eeeac636ef79c3a57b5b3f44e3c6f8bf96ba';
22+
public const PACKAGE_VERSION = '1d141d573432ebc152383bf884f488dc62619f0c';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-11-30 00:42:46';
27+
public const RELEASE_DATE = '2025-11-30 20:34:18';
2828
/**
2929
* @var int
3030
*/

src/PhpParser/Enum/NodeGroup.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
use PhpParser\Node;
77
use PhpParser\Node\Expr\Closure;
8+
use PhpParser\Node\Stmt\Block;
89
use PhpParser\Node\Stmt\Case_;
910
use PhpParser\Node\Stmt\Catch_;
1011
use PhpParser\Node\Stmt\Class_;
@@ -35,7 +36,7 @@ final class NodeGroup
3536
*
3637
* @var array<class-string<Node>>
3738
*/
38-
public const STMTS_AWARE = [Closure::class, Case_::class, Catch_::class, ClassMethod::class, Do_::class, Else_::class, ElseIf_::class, Finally_::class, For_::class, Foreach_::class, Function_::class, If_::class, Namespace_::class, TryCatch::class, While_::class, FileWithoutNamespace::class];
39+
public const STMTS_AWARE = [Block::class, Closure::class, Case_::class, Catch_::class, ClassMethod::class, Do_::class, Else_::class, ElseIf_::class, Finally_::class, For_::class, Foreach_::class, Function_::class, If_::class, Namespace_::class, TryCatch::class, While_::class, FileWithoutNamespace::class];
3940
/**
4041
* @var array<class-string<Node>>
4142
*/

0 commit comments

Comments
 (0)