wa0x6e / Cake-Resque

Resque plugin for CakePHP : for creating background jobs that can be processed offline later
MIT License
159 stars 56 forks source link

Strict Error: variables passed by reference in CakeResqueShell.php, line 846 #35

Closed rodelta closed 11 years ago

rodelta commented 11 years ago

In the console, when I create a worker and then use CakeResque stats I get the following error:

Strict Error: Only variables should be passed by reference in [/opt/lampp/htdocs/buscaparking/Plugin/CakeResque/Console/Command/CakeResqueShell.php, line 846]

Issue is solved changing this:

foreach ($workers as $worker) {
    $activeQueues = array_merge($activeQueues, explode(',', array_pop(explode(':', $worker))));
}

to this:

foreach ($workers as $worker) {
    $workerParams = explode(':', $worker);
    $activeQueues = array_merge($activeQueues, explode(',', array_pop($workerParams)));
}

Thank you =)

wa0x6e commented 11 years ago

Will you submit a PR ?