protected function validateRow(array $row)
    {
        foreach ($row as $k => $v)
        {
            if (WF::is_array_like($v))
                throw new InvalidArgumentException("CSVWriter does not support nested arrays");
        }
    }
protected function validateRow(array $row)
    {
        foreach ($row as $k => $v)
        {
            if (WF::is_array_like($v))
                throw new InvalidArgumentException("CSVWriter does not support nested arrays");
        }
    }
protected function validateRow ( array $ row ) { foreach ( $ row as $ k => $ v ) { if ( WF :: is_array_like ( $ v ) ) throw new InvalidArgumentException ( "CSVWriter does not support nested arrays" ) ; } }
Make sure that the data is not nested more than 1 level deep as CSV does not support that.
@param array $row The row to validate
@throws InvalidArgumentException When the array contains arrays
Make sure that the data is not nested more than 1 level deep as CSV does not support that .