| @@ -302,9 +302,9 @@ | ||
| 302 | 302 | return $this->raise_error( 'illegal_character_underscore' ); |
| 303 | 303 | |
| 304 | 304 | // Are we putting an operator on the stack? |
| 305 | 305 | } elseif ( ( in_array( $op, $ops, true ) || $ex ) && $expecting_operator ) { |
| 306 | - // Are we expecting an operator but have a number/variable/function/opening parenthesis? | |
| 306 | + // Are we expecting an operator but have a number/variable/function/opening parethesis? | |
| 307 | 307 | if ( $ex ) { |
| 308 | 308 | // It's an implicit multiplication. |
| 309 | 309 | $op = '*'; |
| 310 | 310 | --$index; |
| @@ -398,9 +398,9 @@ | ||
| 398 | 398 | $stack->push( '(' ); // That was easy. |
| 399 | 399 | ++$index; |
| 400 | 400 | |
| 401 | 401 | // Do we now have a function/variable/number? |
| 402 | - } elseif ( $ex && ! $expecting_operator ) { // @phpstan-ignore booleanNot.alwaysTrue | |
| 402 | + } elseif ( $ex && ! $expecting_operator ) { | |
| 403 | 403 | $expecting_operator = true; |
| 404 | 404 | $value = $match[1]; |
| 405 | 405 | // May be a function, or variable with implicit multiplication against parentheses... |
| 406 | 406 | if ( 1 === preg_match( '/^(' . self::$name_pattern . ')\($/', $value, $matches ) ) { |
| @@ -572,9 +572,9 @@ | ||
| 572 | 572 | $args[ $this->functions[ $function_name ]['args'][ $i ] ] = $arg; |
| 573 | 573 | } |
| 574 | 574 | } |
| 575 | 575 | // Recursion. |
| 576 | - $stack->push( $this->pfx( $this->functions[ $function_name ]['func'], $args ) ); | |
| 576 | + $stack->push( $this->pfx( $this->functions[ $function_name ]['func'], $args ) ); // @phpstan-ignore argument.type | |
| 577 | 577 | } |
| 578 | 578 | } elseif ( in_array( $token, array( '+', '-', '*', '/', '^', '>', '<', '=', '%' ), true ) ) { |
| 579 | 579 | // If the token is a binary operator, pop two values off the stack, do the operation, and push the result back on. |
| 580 | 580 | $op2 = $stack->pop(); |