Fix times and power in Shared/JAMA/Matrix

I add $args in count line 1
This commit is contained in:
Jean Baptiste Noblot 2018-05-21 10:31:35 +02:00 committed by Adrien Crivelli
parent 37669270f5
commit 0c7df7721b
1 changed files with 2 additions and 2 deletions

View File

@ -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) {