Skip to content

Commit 53a71ad

Browse files
committed
Fix Namespace_ stmts type parameter definition
1 parent 0da2d66 commit 53a71ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/PhpParser/Node/Stmt/Namespace_.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class Namespace_ extends Node\Stmt {
1818
* Constructs a namespace node.
1919
*
2020
* @param null|Node\Name $name Name
21-
* @param null|Node\Stmt[] $stmts Statements
21+
* @param Node\Stmt[] $stmts Statements
2222
* @param array<string, mixed> $attributes Additional attributes
2323
*/
24-
public function __construct(?Node\Name $name = null, ?array $stmts = [], array $attributes = []) {
24+
public function __construct(?Node\Name $name = null, array $stmts = [], array $attributes = []) {
2525
$this->attributes = $attributes;
2626
$this->name = $name;
2727
$this->stmts = $stmts;

0 commit comments

Comments
 (0)