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/vendor/PhpSpreadsheet/Calculation/Statistical/Averages.php +3 -2 3.3.2 → 3.4 View file →
@@ -162,9 +162,10 @@
162 162 if ($valueCount > 0) {
163 163 sort($aArgs, SORT_NUMERIC);
164 164 $valueCount = $valueCount / 2;
165 165 if ($valueCount == floor($valueCount)) {
166 - $returnValue = ($aArgs[$valueCount--] + $aArgs[$valueCount]) / 2; //* @phpstan-ignore-line
166 + $valueCount = (int) $valueCount;
167 + $returnValue = ($aArgs[$valueCount--] + $aArgs[$valueCount]) / 2;
167 168 } else {
168 169 $valueCount = (int) floor($valueCount);
169 170 $returnValue = $aArgs[$valueCount];
170 171 }
@@ -243,9 +244,9 @@
243 244 $maxfreq = $freq;
244 245 $maxfreqkey = $key;
245 246 $maxfreqdatum = $datum;
246 247 } elseif ($freq == $maxfreq) {
247 - if ($frequencyArray[$key]['index'] < $frequencyArray[$maxfreqkey]['index']) { //* @phpstan-ignore-line
248 + if ($frequencyArray[$key]['index'] < $frequencyArray[$maxfreqkey]['index']) { //* @phpstan-ignore offsetAccess.notFound (not sure what phpstan wants)
248 249 $maxfreqkey = $key;
249 250 $maxfreqdatum = $datum;
250 251 }
251 252 }