From 36135a4c05cda11a4d7f77971e15cf5dcc17ce91 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sun, 14 Jul 2019 13:36:23 +0200 Subject: [PATCH] Use empty to check for empty array --- src/PhpSpreadsheet/Calculation/Statistical.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Calculation/Statistical.php b/src/PhpSpreadsheet/Calculation/Statistical.php index 1a47a3a5..a7f7bb63 100644 --- a/src/PhpSpreadsheet/Calculation/Statistical.php +++ b/src/PhpSpreadsheet/Calculation/Statistical.php @@ -1155,7 +1155,7 @@ class Statistical // Return value $returnValue = 0; - if (!$arrayList) { + if (empty($arrayList)) { return $returnValue; }