Skip to content

Commit c52dcff

Browse files
committed
PHP5.3 compatible comparison
1 parent 8085d7f commit c52dcff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Command/VhostDefineCommand.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
6666
*/
6767
private function getVhostList(InputInterface $input)
6868
{
69-
$vhostList = array($input->getArgument('vhost'));
70-
if (empty($input->getArgument('vhost'))) {
69+
$inputVhost = $input->getArgument('vhost');
70+
$vhostList = array($inputVhost);
71+
if (empty($inputVhost)) {
7172
$vhostList = $this->getContainer()->getParameter('ola_rabbit_mq_admin_toolkit.vhost_list');
7273
}
7374

0 commit comments

Comments
 (0)