Skip to content

Commit

Permalink
Merge pull request #1 from Shardj/patch-1
Browse files Browse the repository at this point in the history
removing uses of depricated function create_function()
  • Loading branch information
falkenhawk authored Jan 11, 2019
2 parents ceab6b9 + 3ef29a7 commit d5595f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Feed/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5595f5

Please sign in to comment.