Skip to content

Commit

Permalink
Merge pull request #2112 from jenschude/fix_message_factory_for_php73
Browse files Browse the repository at this point in the history
Fix MessageFactory for PHP 7.3
  • Loading branch information
sagikazarmark committed Jul 31, 2018
2 parents af094f5 + d71a751 commit 998176f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -5,7 +5,10 @@ php:
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- hhvm
- nightly

env:
global:
Expand All @@ -26,6 +29,7 @@ script: $TEST_COMMAND
matrix:
allow_failures:
- php: hhvm
- php: nightly
fast_finish: true
include:
- php: 5.4
Expand Down
8 changes: 4 additions & 4 deletions src/Message/MessageFactory.php
Expand Up @@ -194,7 +194,7 @@ protected function applyOptions(
case 'allow_redirects':

if ($value === false) {
continue;
continue 2;
}

if ($value === true) {
Expand All @@ -213,7 +213,7 @@ protected function applyOptions(
case 'decode_content':

if ($value === false) {
continue;
continue 2;
}

$config['decode_content'] = true;
Expand Down Expand Up @@ -251,7 +251,7 @@ protected function applyOptions(
case 'auth':

if (!$value) {
continue;
continue 2;
}

if (is_array($value)) {
Expand Down Expand Up @@ -354,7 +354,7 @@ protected function applyOptions(
if (isset($this->customOptions[$key])) {
$fn = $this->customOptions[$key];
$fn($request, $value);
continue;
continue 2;
}

throw new Iae("No method can handle the {$key} config key");
Expand Down

0 comments on commit 998176f

Please sign in to comment.