Skip to content

Commit

Permalink
array typecast
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy-j committed Jan 30, 2017
1 parent 0b84185 commit 81c2579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Spiral/Http/Input/InputManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function bag($name)
$class = $this->bagAssociations[$name]['class'];
$data = call_user_func([$this->request(), $this->bagAssociations[$name]['source']]);

return $this->bagInstances[$name] = new $class($data);
return $this->bagInstances[$name] = new $class((array)$data);
}

/**
Expand Down

0 comments on commit 81c2579

Please sign in to comment.