File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,10 @@ public function getSubstring(int $length, int $offset = 0): string
53
53
return substr ($ this ->source , $ this ->position + $ offset , $ length );
54
54
}
55
55
56
- public function getOffset (string $ string )
56
+ /**
57
+ * @return int|false
58
+ */
59
+ public function getOffset (string $ string ): int |bool
57
60
{
58
61
$ position = strpos ($ this ->source , $ string , $ this ->position );
59
62
@@ -71,12 +74,12 @@ public function findPattern(string $pattern): array|false
71
74
return false ;
72
75
}
73
76
74
- public function moveForward (int $ length )
77
+ public function moveForward (int $ length ): void
75
78
{
76
79
$ this ->position += $ length ;
77
80
}
78
81
79
- public function moveToEnd ()
82
+ public function moveToEnd (): void
80
83
{
81
84
$ this ->position = $ this ->length ;
82
85
}
You can’t perform that action at this time.
0 commit comments