Skip to content

Commit

Permalink
Initialize data array.
Browse files Browse the repository at this point in the history
  • Loading branch information
lavary committed Jul 22, 2014
1 parent d1a672e commit f584682
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Lavary/Menu/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Item {
*
* @var array
*/
public $divider;
public $divider = array();

/**
* Parent Id of the menu item
Expand All @@ -49,7 +49,7 @@ class Item {
*
* @var array
*/
protected $data;
protected $data = array();

/**
* Attributes of menu item
Expand Down
4 changes: 2 additions & 2 deletions src/Lavary/Menu/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ class Link {
*
* @var array
*/
protected $path;
protected $path = array();

/**
* Link attributes
*
* @var array
*/
protected $attributes;
protected $attributes = array();

/**
* Creates a hyper link instance
Expand Down

0 comments on commit f584682

Please sign in to comment.