Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0cc9dd0

Browse files
authored
More precise phpdocs in PhpToken
1 parent60328e3 commit0cc9dd0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎PhpToken.php‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class PhpToken implements \Stringable
2929
public$text;
3030

3131
/**
32-
* @var int
32+
* @var-1|positive-int
3333
*/
3434
public$line;
3535

@@ -38,6 +38,9 @@ class PhpToken implements \Stringable
3838
*/
3939
public$pos;
4040

41+
/**
42+
* @param -1|positive-int $line
43+
*/
4144
publicfunction__construct(int$id,string$text,int$line = -1,int$position = -1)
4245
{
4346
$this->id =$id;
@@ -80,7 +83,7 @@ public function __toString(): string
8083
}
8184

8285
/**
83-
* @return static[]
86+
* @returnlist<static>
8487
*/
8588
publicstaticfunctiontokenize(string$code,int$flags =0):array
8689
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp