Closed ridwaanzan closed 1 year ago
I believe this change would break support for constructing a parser with some CSV-style data.
The $data
argument has a deprecation warning:
WARNING: Supplying file paths here is
deprecated. Use parseFile() instead
So in your case, to avoid the deprecation warning, pass in a null
data value when constructing the parser, then call parseFile()
giving it the path to the file to parse instead.
I believe this change would break support for constructing a parser with some CSV-style data.
The
$data
argument has a deprecation warning:WARNING: Supplying file paths here is deprecated. Use parseFile() instead
So in your case, to avoid the deprecation warning, pass in a
null
data value when constructing the parser, then callparseFile()
giving it the path to the file to parse instead.
wow, thank you very much Sir. i will try your suggestion
i got this error when using laravel 7.x, and got error message. so, i'm changin it and it works fine in my local.