schmittjoh / JMSJobQueueBundle

Run and Schedule Symfony Console Commands as Background Jobs
http://jmsyst.com/bundles/JMSJobQueueBundle
335 stars 254 forks source link

Incorrect added arguments if it`s an array. Raise exception about array #124

Open imilyukov opened 8 years ago

imilyukov commented 8 years ago

When input option with mode multiple, then raise next warning: Warning: escapeshellarg() expects parameter 1 to be string, array given

Needed just test for type array of $arg and implode into string. But better use ArrayInput as wrapper, it`s accept an array and output prepared string by __toString() method.

See: https://github.com/schmittjoh/JMSJobQueueBundle/blob/master/Command/RunCommand.php#L360

Thanks ;)