From 0c7df7721bbbdc62ed1e876a0fb332d62ad03ba7 Mon Sep 17 00:00:00 2001 From: Jean Baptiste Noblot Date: Mon, 21 May 2018 10:31:35 +0200 Subject: [PATCH] Fix times and power in Shared/JAMA/Matrix I add $args in count line 1 --- src/PhpSpreadsheet/Shared/JAMA/Matrix.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PhpSpreadsheet/Shared/JAMA/Matrix.php b/src/PhpSpreadsheet/Shared/JAMA/Matrix.php index 528a025f..8ab9cfb3 100644 --- a/src/PhpSpreadsheet/Shared/JAMA/Matrix.php +++ b/src/PhpSpreadsheet/Shared/JAMA/Matrix.php @@ -1000,7 +1000,7 @@ class Matrix */ public function times(...$args) { - if (count() > 0) { + if (count($args) > 0) { $match = implode(',', array_map('gettype', $args)); switch ($match) { @@ -1094,7 +1094,7 @@ class Matrix */ public function power(...$args) { - if (count() > 0) { + if (count($args) > 0) { $match = implode(',', array_map('gettype', $args)); switch ($match) {