Skip to content

Commit 7431adc

Browse files
authored
Merge pull request #489 from weaverryan/patch-1
Adding tests for Symfony 4 BETA
2 parents acafbdb + eca2499 commit 7431adc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ matrix:
3232
env: SYMFONY_VERSION=2.8.*
3333
- php: 7.0
3434
env: SYMFONY_VERSION=3.0.*
35+
- php: 7.1
36+
env: DEPENDENCIES=beta
3537

3638
allow_failures:
3739
- php: nightly
@@ -42,6 +44,7 @@ env:
4244

4345
before_install:
4446
- phpenv config-rm xdebug.ini || echo "xdebug not available";
47+
- if [ "$DEPENDENCIES" = "beta" ]; then perl -pi -e 's/^}$/,"minimum-stability":"beta"}/' composer.json; fi;
4548
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/framework-bundle "$SYMFONY_VERSION"; fi
4649
- if [ "$COMPOSER_FLAGS" != "" ]; then composer update --prefer-dist --no-interaction --no-scripts $COMPOSER_FLAGS; fi;
4750

DependencyInjection/OldSoundRabbitMqExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ protected function loadMultipleConsumers()
255255
foreach ($consumer['queues'] as $queueName => $queueOptions) {
256256
$queues[$queueOptions['name']] = $queueOptions;
257257
$queues[$queueOptions['name']]['callback'] = array(new Reference($queueOptions['callback']), 'execute');
258-
$callbacks[] = new Reference($queueOptions['callback']);
258+
$callbacks[] = $queueOptions['callback'];
259259
}
260260

261261
$definition = new Definition('%old_sound_rabbit_mq.multi_consumer.class%');

0 commit comments

Comments
 (0)