Skip to content

Commit 0e57b98

Browse files
committed
Merge pull request #247 from j0k3r/php53-compatibility
Fix PHP 5.3 compatibility
2 parents 54a8722 + 4193ab7 commit 0e57b98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Command/StdInProducerCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class StdInProducerCommand extends BaseRabbitMqCommand
1111
{
1212
const FORMAT_PHP = 'php';
1313
const FORMAT_RAW = 'raw';
14-
14+
1515
protected function configure()
1616
{
1717
parent::configure();
@@ -43,7 +43,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
4343
while (!feof(STDIN)) {
4444
$data .= fread(STDIN, 8192);
4545
}
46-
46+
4747
$route = $input->getOption('route');
4848
$format = $input->getOption('format');
4949

@@ -55,7 +55,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
5555
break;
5656
default:
5757
throw new \InvalidArgumentException(sprintf('Invalid payload format "%s", expecting one of: %s.',
58-
$format, implode(', ', [self::FORMAT_PHP, self::FORMAT_RAW])));
58+
$format, implode(', ', array(self::FORMAT_PHP, self::FORMAT_RAW))));
5959
}
6060

6161
$producer->publish($data, $route);

0 commit comments

Comments
 (0)