-
Notifications
You must be signed in to change notification settings - Fork 62
Set the default value of queue in proxy client to an empty array #366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
looks reasonable, yes. i am trying to fix the 1.4 build in #369 - once i merged that, i will ask you to rebase this branch. |
|
@dbu Sure, no problem! |
|
ok, here we go. just fixed the build on 1.4. can you please also add a test that will show this now works, that would fail without your fix? php warnings break the build so just flushing an empty queue and asserting that this operates normally and does not make any invalidation requests would be good. |
|
Actually, it seems that |
|
ah ok. lets add 7.1 and 7.2 to the test matrix then. can you do it in your pull request? you will need to adjust .travisci.yml as well to use the right phpunit on all php 7 versions. |
|
@dbu I've added PHP 7.1 and 7.2 to the test matrix, but I'm not very well versed in shell scripting so if you have a better suggestion on how to handle 7.0, 7.1 and 7.2 versions, do tell. |
.travis.yml
Outdated
| # Install deps | ||
| - composer update $COMPOSER_FLAGS --dev --prefer-source --no-interaction | ||
| - sh -c "if [ '$TRAVIS_PHP_VERSION' = '7' ]; then wget https://phar.phpunit.de/phpunit-5.7.phar; fi" | ||
| - sh -c "if [ '$TRAVIS_PHP_VERSION' = '7.0' ] || [ '$TRAVIS_PHP_VERSION' = '7.1' ] || [ '$TRAVIS_PHP_VERSION' = '7.2' ]; then wget https://phar.phpunit.de/phpunit-5.7.phar; fi" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets try with bash: bash -c "if [[ '$TRAVIS_PHP_VERSION' == '7.'* ]] ; then wget https://phar.phpunit.de/phpunit-5.7.phar; fi"
and yes, bash is a really messed up thing :-/. the * is outside the quotes...
|
@dbu Now it looks like as if it's randomly failing. Can you restart the build? |
|
yay! thanks a lot. will merge and then try to merge upstream - guess there will be conflicts with .travis.yml i think the build on 1.4 has been flaky for a while. in 2.0 its better, so i won't bother anymore. |
|
Thanks @dbu :) |
|
i tagged 1.4.3 with this and plan to release 2.0.2 shortly, waiting for the build to run through |
PHP 7.2 throws a warning when
countis called with anullargument which breaks Symfony apps (and presumably others too), so this makes sure theAbstractProxyClient::$queueis nevernullwhen counting it inAbstractProxyClient::flushmethod.