Skip to content

Commit

Permalink
Returning early if data looks like a file array
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyharris committed Jun 11, 2018
1 parent 9e74601 commit 91ba547
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/TestSuite/IntegrationTestCase.php
Expand Up @@ -679,9 +679,11 @@ protected function _castToString($data)

if (is_array($value)) {
$looksLikeFile = isset($value['error']) && isset($value['tmp_name']) && isset($value['size']);
if (!$looksLikeFile) {
$data[$key] = $this->_castToString($value);
if ($looksLikeFile) {
continue;
}

$data[$key] = $this->_castToString($value);
}
}

Expand Down

0 comments on commit 91ba547

Please sign in to comment.