@@ -2095,12 +2095,12 @@ public function getTokensAsString($start, $length, $origContent=false)
2095
2095
* @param int|string|array $types The type(s) of tokens to search for.
2096
2096
* @param int $start The position to start searching from in the
2097
2097
* token stack.
2098
- * @param int $end The end position to fail if no token is found.
2098
+ * @param int|null $end The end position to fail if no token is found.
2099
2099
* if not specified or null, end will default to
2100
2100
* the start of the token stack.
2101
2101
* @param bool $exclude If true, find the previous token that is NOT of
2102
2102
* the types specified in $types.
2103
- * @param string $value The value that the token(s) must be equal to.
2103
+ * @param string|null $value The value that the token(s) must be equal to.
2104
2104
* If value is omitted, tokens with any value will
2105
2105
* be returned.
2106
2106
* @param bool $local If true, tokens outside the current statement
@@ -2176,12 +2176,12 @@ public function findPrevious(
2176
2176
* @param int|string|array $types The type(s) of tokens to search for.
2177
2177
* @param int $start The position to start searching from in the
2178
2178
* token stack.
2179
- * @param int $end The end position to fail if no token is found.
2179
+ * @param int|null $end The end position to fail if no token is found.
2180
2180
* if not specified or null, end will default to
2181
2181
* the end of the token stack.
2182
2182
* @param bool $exclude If true, find the next token that is NOT of
2183
2183
* a type specified in $types.
2184
- * @param string $value The value that the token(s) must be equal to.
2184
+ * @param string|null $value The value that the token(s) must be equal to.
2185
2185
* If value is omitted, tokens with any value will
2186
2186
* be returned.
2187
2187
* @param bool $local If true, tokens outside the current statement
0 commit comments