|
@@ -7,7 +7,7 @@ use yiins\exceptions\InvalidValueException;
|
|
|
|
|
|
|
|
class ArrayHelper
|
|
class ArrayHelper
|
|
|
{
|
|
{
|
|
|
- public function mapTraversable(callable $callback, \Traversable $array)
|
|
|
|
|
|
|
+ public static function mapTraversable(callable $callback, \Traversable $array)
|
|
|
{
|
|
{
|
|
|
$result = [];
|
|
$result = [];
|
|
|
foreach ($array as $value) {
|
|
foreach ($array as $value) {
|