Skip to content

Commit

Permalink
Updated for strict types in php7
Browse files Browse the repository at this point in the history
  • Loading branch information
sebwalk committed Apr 9, 2018
1 parent dfcbfbd commit 27322e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Importers/FromCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function __construct($input, $delimiter = ';', $known_mapping = [], $offs

$parser = $this->getParser();
$parser->offset = $this->getOffset();
$parser->parse($this->input);
$parser->parse($this->input, null, null, []);
$this->columns = array_map("utf8_encode",$parser->titles);

$this->columnGuesser = $this->getColumnGuesser($this->columns, $parser->data, $known_mapping);
Expand Down Expand Up @@ -152,7 +152,7 @@ public function guessOffset()
{
$parser = $this->getParser();
$parser->heading = false;
$parser->parse($this->input);
$parser->parse($this->input, null, null, []);

foreach($parser->data as $index=>$row){
if(array_search("", $row) === false && count($row) > $this->minColumns){
Expand Down Expand Up @@ -229,7 +229,7 @@ private function getFieldOfRow($row, $key)
*/
private function getParser()
{
$parser = new \parseCSV();
$parser = new \parseCSV(null, null, null, []);
$parser->delimiter = $this->delimiter;
$parser->convert_encoding = true;
return $parser;
Expand Down

0 comments on commit 27322e4

Please sign in to comment.