Skip to content

Commit

Permalink
Types.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Jan 11, 2024
1 parent 3361de9 commit a1b106a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/searchsplitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function shift_operator() {
if (!$op) {
$colon = strpos($m[0], ":");
$op = clone SearchOperator::get(strtoupper(substr($m[0], 0, $colon)));
/** @phan-suppress-next-line PhanAccessReadOnlyProperty */
$op->subtype = substr($m[0], $colon + 1);
}
$this->set_span_and_pos(strlen($m[0]));
Expand Down Expand Up @@ -212,10 +213,11 @@ static function split_balanced_parens($s) {
}

/** @param 'SPACE'|'SPACEOR' $spaceop
* @param int $max_terms
* @param int $max_ops
* @return ?SearchAtom */
function parse_expression($spaceop = "SPACE", $max_ops = 2048) {
$cura = null;
'@phan-var-force ?SearchAtom $cura';
$parens = 0;
$nops = 0;
while (!$this->is_empty()) {
Expand Down

0 comments on commit a1b106a

Please sign in to comment.