Skip to content

Commit

Permalink
Make argument unpacking PHP5.4 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijastuden committed Sep 15, 2015
1 parent 77d46de commit 2a776dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Result/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ protected function setCurrentRow($row)
if (empty($this->constructor_arguments)) {
$this->current_row = new $class_name();
} else {
$this->current_row = new $class_name(...$this->constructor_arguments);
$this->current_row = (new ReflectionClass($class_name))->newInstanceArgs($this->constructor_arguments);
}

$this->current_row->loadFromRow($row);
Expand Down

0 comments on commit 2a776dc

Please sign in to comment.