diff --git a/library/Zend/Feed/Element.php b/library/Zend/Feed/Element.php index e18825f..d02d0cb 100644 --- a/library/Zend/Feed/Element.php +++ b/library/Zend/Feed/Element.php @@ -193,7 +193,7 @@ public function __get($var) if ($length == 1) { return new Zend_Feed_Element($nodes[0]); } elseif ($length > 1) { - return array_map(create_function('$e', 'return new Zend_Feed_Element($e);'), $nodes); + return array_map(function ($e) { return new Zend_Feed_Element($e); }, $nodes); } else { // When creating anonymous nodes for __set chaining, don't // call appendChild() on them. Instead we pass the current