diff --git a/src/Lavary/Menu/Item.php b/src/Lavary/Menu/Item.php index 05412b8..d605c24 100644 --- a/src/Lavary/Menu/Item.php +++ b/src/Lavary/Menu/Item.php @@ -35,7 +35,7 @@ class Item { * * @var array */ - public $divider; + public $divider = array(); /** * Parent Id of the menu item @@ -49,7 +49,7 @@ class Item { * * @var array */ - protected $data; + protected $data = array(); /** * Attributes of menu item diff --git a/src/Lavary/Menu/Link.php b/src/Lavary/Menu/Link.php index f32b861..1c1e2c4 100644 --- a/src/Lavary/Menu/Link.php +++ b/src/Lavary/Menu/Link.php @@ -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