PluginProbe
TablePress – Tables in WordPress made easy / 3.0
TablePress – Tables in WordPress made easy v3.0
3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.4.4 All 44 releases
← All changes | libraries/evalmath.class.php +3 -3 3.3.13.0 View file →
@@ -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();