Skip to content

Commit 7d79d0d

Browse files
committed
Remove variadic args
1 parent 9621e09 commit 7d79d0d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/Utils/ArrayObject.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,11 @@ class ArrayObject implements IteratorAggregate, Countable
2020
private $array;
2121

2222
/**
23-
* @param array|mixed... $array
23+
* @param array $array
2424
*/
25-
public function __construct($array)
25+
public function __construct(array $array)
2626
{
27-
if (func_num_args() > 1) {
28-
$this->array = func_get_args();
29-
} else {
30-
$this->array = $array;
31-
}
27+
$this->array = $array;
3228
}
3329

3430
/**

0 commit comments

Comments
 (0)