maxonfjvipon / elegant-elephant

Elegant object oriented php primitives library
MIT License
10 stars 1 forks source link

Cycle does not work with overloading. #8

Closed maxonfjvipon closed 2 years ago

maxonfjvipon commented 2 years ago
Cycle::new(
    Cycle::new(
        static function ($num) use (&$sum) {
            $sum += $num;
        }
   )
)->exec([[2, 3], [4, 4]]);

TypeError : Unsupported operand types: int + array