Commit 09691fc 1 parent 1396767 commit 09691fc Copy full SHA for 09691fc
File tree 4 files changed +10
-0
lines changed
4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ public function getText(): string {
46
46
* Gets the line number the comment started on.
47
47
*
48
48
* @return int Line number (or -1 if not available)
49
+ * @phpstan-return -1|positive-int
49
50
*/
50
51
public function getStartLine (): int {
51
52
return $ this ->startLine ;
@@ -73,6 +74,7 @@ public function getStartTokenPos(): int {
73
74
* Gets the line number the comment ends on.
74
75
*
75
76
* @return int Line number (or -1 if not available)
77
+ * @phpstan-return -1|positive-int
76
78
*/
77
79
public function getEndLine (): int {
78
80
return $ this ->endLine ;
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public function getRawMessage(): string {
32
32
* Gets the line the error starts in.
33
33
*
34
34
* @return int Error start line
35
+ * @phpstan-return -1|positive-int
35
36
*/
36
37
public function getStartLine (): int {
37
38
return $ this ->attributes ['startLine ' ] ?? -1 ;
@@ -41,6 +42,7 @@ public function getStartLine(): int {
41
42
* Gets the line the error ends in.
42
43
*
43
44
* @return int Error end line
45
+ * @phpstan-return -1|positive-int
44
46
*/
45
47
public function getEndLine (): int {
46
48
return $ this ->attributes ['endLine ' ] ?? -1 ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ public function getSubNodeNames(): array;
21
21
* Gets line the node started in (alias of getStartLine).
22
22
*
23
23
* @return int Start line (or -1 if not available)
24
+ * @phpstan-return -1|positive-int
24
25
*
25
26
* @deprecated Use getStartLine() instead
26
27
*/
@@ -32,6 +33,7 @@ public function getLine(): int;
32
33
* Requires the 'startLine' attribute to be enabled in the lexer (enabled by default).
33
34
*
34
35
* @return int Start line (or -1 if not available)
36
+ * @phpstan-return -1|positive-int
35
37
*/
36
38
public function getStartLine (): int ;
37
39
@@ -41,6 +43,7 @@ public function getStartLine(): int;
41
43
* Requires the 'endLine' attribute to be enabled in the lexer (enabled by default).
42
44
*
43
45
* @return int End line (or -1 if not available)
46
+ * @phpstan-return -1|positive-int
44
47
*/
45
48
public function getEndLine (): int ;
46
49
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public function __construct(array $attributes = []) {
19
19
* Gets line the node started in (alias of getStartLine).
20
20
*
21
21
* @return int Start line (or -1 if not available)
22
+ * @phpstan-return -1|positive-int
22
23
*/
23
24
public function getLine (): int {
24
25
return $ this ->attributes ['startLine ' ] ?? -1 ;
@@ -30,6 +31,7 @@ public function getLine(): int {
30
31
* Requires the 'startLine' attribute to be enabled in the lexer (enabled by default).
31
32
*
32
33
* @return int Start line (or -1 if not available)
34
+ * @phpstan-return -1|positive-int
33
35
*/
34
36
public function getStartLine (): int {
35
37
return $ this ->attributes ['startLine ' ] ?? -1 ;
@@ -41,6 +43,7 @@ public function getStartLine(): int {
41
43
* Requires the 'endLine' attribute to be enabled in the lexer (enabled by default).
42
44
*
43
45
* @return int End line (or -1 if not available)
46
+ * @phpstan-return -1|positive-int
44
47
*/
45
48
public function getEndLine (): int {
46
49
return $ this ->attributes ['endLine ' ] ?? -1 ;
You can’t perform that action at this time.
0 commit comments