Skip to content

Commit 727974a

Browse files
authored
Merge pull request #366 from emodric/patch-1
Set the default value of queue in proxy client to an empty array
2 parents efd6ed8 + dde6a09 commit 727974a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ php:
55
- 5.4
66
- 5.5
77
- 5.6
8-
- 7
8+
- 7.0
9+
- 7.1
10+
- 7.2
911

1012
env:
1113
- VARNISH_VERSION=4.0
@@ -28,7 +30,7 @@ branches:
2830
before_script:
2931
# Install deps
3032
- composer update $COMPOSER_FLAGS --dev --prefer-source --no-interaction
31-
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7' ]; then wget https://phar.phpunit.de/phpunit-5.7.phar; fi"
33+
- bash -c "if [[ '$TRAVIS_PHP_VERSION' == '7.'* ]] ; then wget https://phar.phpunit.de/phpunit-5.7.phar; fi"
3234
# Install Varnish
3335
- curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -
3436
- echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-${VARNISH_VERSION}" | sudo tee -a /etc/apt/sources.list
@@ -42,7 +44,7 @@ before_script:
4244
- sh -c "if [ '$TRAVIS_PHP_VERSION' = 'hhvm' ]; then ./tests/ci/install-apache-hhvm.sh; fi"
4345

4446
script:
45-
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '7' ]; then php phpunit-5.7.phar --coverage-clover=coverage.clover; fi"
47+
- bash -c "if [[ '$TRAVIS_PHP_VERSION' == '7.'* ]] ; then php phpunit-5.7.phar --coverage-clover=coverage.clover; fi"
4648
- sh -c "if [ '$TRAVIS_PHP_VERSION' \< '7' ]; then phpunit --coverage-clover=coverage.clover; fi"
4749
- make -C doc SPHINXOPTS='-nW' html
4850
- make -C doc spelling

src/ProxyClient/AbstractProxyClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ abstract class AbstractProxyClient implements ProxyClientInterface
4848
*
4949
* @var array|RequestInterface[]
5050
*/
51-
private $queue;
51+
private $queue = array();
5252

5353
/**
5454
* Constructor.

0 commit comments

Comments
 (0)