From 1ef4a2f7d06314a9fa2ce26d5d3092514cc1e006 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 2 Sep 2015 15:26:07 +0200 Subject: [PATCH] NavigationItem: Do not provide a default for setProperties() refs #5600 --- library/Icinga/Web/Navigation/NavigationItem.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/Icinga/Web/Navigation/NavigationItem.php b/library/Icinga/Web/Navigation/NavigationItem.php index 4d4dbe9b4..90a77a68f 100644 --- a/library/Icinga/Web/Navigation/NavigationItem.php +++ b/library/Icinga/Web/Navigation/NavigationItem.php @@ -425,13 +425,13 @@ class NavigationItem implements Countable, IteratorAggregate } /** - * Set properties for the item + * Set this item's properties * * @param array $properties * * @return $this */ - public function setProperties(array $properties = array()) + public function setProperties(array $properties) { foreach ($properties as $name => $value) { $setter = 'set' . ucfirst($name); @@ -439,6 +439,7 @@ class NavigationItem implements Countable, IteratorAggregate $this->$setter($value); } } + return $this; }