Skip to content

Commit

Permalink
fix MessageFactory for PHP 7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Jul 25, 2018
1 parent af094f5 commit d71a751
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 d71a751

Please sign in to comment.