PluginProbe
TablePress – Tables in WordPress made easy / 3.4
TablePress – Tables in WordPress made easy v3.4
3.4 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 All 45 releases
← All changes | libraries/evalmath.class.php +2 -2 3.3.1 → 3.4 View file →
@@ -310,9 +310,9 @@
310 310 --$index;
311 311 }
312 312 // Heart of the algorithm: .
313 313 // phpcs:ignore Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition
314 - while ( $stack->count > 0 && ( $o2 = $stack->last() ) && in_array( $o2, $ops, true ) && ( $ops_r[ $op ] ? $ops_p[ $op ] < $ops_p[ $o2 ] : $ops_p[ $op ] <= $ops_p[ $o2 ] ) ) {
314 + while ( $stack->count > 0 && ( $o2 = $stack->last() ) && in_array( $o2, $ops, true ) && ( $ops_r[ $op ] ? $ops_p[ $op ] < $ops_p[ $o2 ] : $ops_p[ $op ] <= $ops_p[ $o2 ] ) ) { // @phpstan-ignore offsetAccess.notFound
315 315 // Pop stuff off the stack into the output.
316 316 $output[] = $stack->pop();
317 317 }
318 318 // Many thanks: https://en.wikipedia.org/wiki/Reverse_Polish_notation .
@@ -962,9 +962,9 @@
962 962 * @param array<int, double|int> ...$args Values for which the mode shall be calculated.
963 963 * @return double|int Mode of the passed arguments.
964 964 */
965 965 public static function mode( ...$args ) /* : float|int */ {
966 - $values = array_count_values( $args ); // @phpstan-ignore argument.type
966 + $values = array_count_values( $args ); // @phpstan-ignore argument.type, argument.type
967 967 asort( $values );
968 968 return array_key_last( $values ); // @phpstan-ignore return.type
969 969 }
970 970