initiate items as empty array by default.

This commit is contained in:
Paweł Jędrzejewski 2012-03-28 23:56:57 +02:00
parent 5edcc8982f
commit 5d898acc05

View file

@ -60,6 +60,7 @@ abstract class Cart implements CartInterface
*/ */
public function __construct() public function __construct()
{ {
$this->items = array();
$this->totalItems = 0; $this->totalItems = 0;
$this->locked = false; $this->locked = false;
$this->incrementExpiresAt(); $this->incrementExpiresAt();