Skip to content

Commit 5353cc3

Browse files
committed
Comment constructor does not need optional parameters
1 parent ef70e62 commit 5353cc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ast/Comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Comment
1313

1414
public int $startIndex;
1515

16-
public function __construct(string $text, int $startLine = -1, int $startIndex = -1)
16+
public function __construct(string $text, int $startLine, int $startIndex)
1717
{
1818
$this->text = $text;
1919
$this->startLine = $startLine;

0 commit comments

Comments
 (0)