We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cda0fa7 commit 5436c3dCopy full SHA for 5436c3d
Parser/Reader.php
@@ -53,7 +53,10 @@ public function getSubstring(int $length, int $offset = 0): string
53
return substr($this->source, $this->position + $offset, $length);
54
}
55
56
- public function getOffset(string $string)
+ /**
57
+ * @return int|false
58
+ */
59
+ public function getOffset(string $string): int|bool
60
{
61
$position = strpos($this->source, $string, $this->position);
62
@@ -71,12 +74,12 @@ public function findPattern(string $pattern): array|false
71
74
return false;
72
75
73
76
- public function moveForward(int $length)
77
+ public function moveForward(int $length): void
78
79
$this->position += $length;
80
81
- public function moveToEnd()
82
+ public function moveToEnd(): void
83
84
$this->position = $this->length;
85
0 commit comments