Skip to content

Commit 646c2c8

Browse files
committed
add file without ns
1 parent 8bcbb8f commit 646c2c8

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

rules/CodingStyle/Rector/Stmt/NewlineAfterStatementRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(
2727
public function getRuleDefinition(): RuleDefinition
2828
{
2929
return new RuleDefinition(
30-
'Add empty new line after differnt-type statements to improve code readability',
30+
'Add empty new line after different-type statements to improve code readability',
3131
[
3232
new CodeSample(
3333
<<<'CODE_SAMPLE'

src/PhpParser/Enum/NodeGroup.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use PhpParser\Node\Stmt\Trait_;
2727
use PhpParser\Node\Stmt\TryCatch;
2828
use PhpParser\Node\Stmt\While_;
29+
use Rector\PhpParser\Node\CustomNode\FileWithoutNamespace;
2930

3031
final class NodeGroup
3132
{
@@ -34,7 +35,7 @@ final class NodeGroup
3435
*
3536
* If https://github.com/nikic/PHP-Parser/pull/1113 gets merged, can replace those.
3637
*
37-
* @var array<class-string>
38+
* @var array<class-string<Node>>
3839
*/
3940
public const STMTS_AWARE = [
4041
Closure::class,
@@ -52,6 +53,7 @@ final class NodeGroup
5253
Namespace_::class,
5354
TryCatch::class,
5455
While_::class,
56+
FileWithoutNamespace::class,
5557
];
5658

5759
/**

0 commit comments

Comments
 (0)