Skip to content

Commit

Permalink
fixed bug in getQueueFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
abachmann committed Mar 6, 2015
1 parent dcf619e commit 2829215
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Queue/AMQPQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,9 @@ protected function getQueueName($name)
*/
protected function getQueueFlags($queueName, $deferredQueueName = null, $deferredQueueDelay = null)
{
$result = ArrayUtil::arrayMapRecursive(function ($value) {
return is_callable($value) ? call_user_func_array($value, func_get_args()) : $value;
$args = func_get_args();
$result = ArrayUtil::arrayMapRecursive(function ($value) use($args) {
return is_callable($value) ? call_user_func_array($value, $args) : $value;
}, $this->queueFlags);

$result = ArrayUtil::removeNullsRecursive($result);
Expand Down

0 comments on commit 2829215

Please sign in to comment.