@@ -2095,12 +2095,12 @@ public function getTokensAsString($start, $length, $origContent=false)
20952095 * @param int|string|array $types The type(s) of tokens to search for.
20962096 * @param int $start The position to start searching from in the
20972097 * 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.
20992099 * if not specified or null, end will default to
21002100 * the start of the token stack.
21012101 * @param bool $exclude If true, find the previous token that is NOT of
21022102 * 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.
21042104 * If value is omitted, tokens with any value will
21052105 * be returned.
21062106 * @param bool $local If true, tokens outside the current statement
@@ -2176,12 +2176,12 @@ public function findPrevious(
21762176 * @param int|string|array $types The type(s) of tokens to search for.
21772177 * @param int $start The position to start searching from in the
21782178 * 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.
21802180 * if not specified or null, end will default to
21812181 * the end of the token stack.
21822182 * @param bool $exclude If true, find the next token that is NOT of
21832183 * 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.
21852185 * If value is omitted, tokens with any value will
21862186 * be returned.
21872187 * @param bool $local If true, tokens outside the current statement
0 commit comments