Skip to content

Commit

Permalink
Adjust argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Oct 25, 2024
1 parent 7525bf0 commit 36ba2eb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions files/parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -3846,14 +3846,15 @@ function phvolt_ret_set_statement(array &$ret, array $assignments): void
$ret['assignments'] = $assignments;
}

function phvolt_ret_set_assignment(array &$ret, array $assignable_expr, int $operator, array $expr, State $state): void
function phvolt_ret_set_assignment(array &$ret, array $assignable_expr, mixed $operator, array $expr, State $state): void
{
$ret = [];
$ret['variable'] = $assignable_expr;
$ret['op'] = $operator;
$ret['expr'] = $expr;
$ret['file'] = $state->getActiveFile();
$ret['line'] = $state->getActiveLine();
$ret = [
'variable' => $assignable_expr,
'op' => $operator,
'expr' => $expr,
'file' => $state->getActiveFile(),
'line' => $state->getActiveLine(),
];
}

function phvolt_ret_continue_statement(array &$ret, State $state): void
Expand Down

0 comments on commit 36ba2eb

Please sign in to comment.