Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit c0a643f

Browse files
author
Ben Batschelet
committed
Remove call to deprecated create_function()
1 parent e6487d5 commit c0a643f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/Zend/Feed/Element.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function __get($var)
193193
if ($length == 1) {
194194
return new Zend_Feed_Element($nodes[0]);
195195
} elseif ($length > 1) {
196-
return array_map(create_function('$e', 'return new Zend_Feed_Element($e);'), $nodes);
196+
return array_map(function ($e) { return new Zend_Feed_Element($e); }, $nodes);
197197
} else {
198198
// When creating anonymous nodes for __set chaining, don't
199199
// call appendChild() on them. Instead we pass the current

0 commit comments

Comments
 (0)