Skip to content

Commit 7e69e2e

Browse files
authored
Merge pull request #62 from doofinder/domingo/61_error_parsing_bulk_response_with_errors
Remove old result values verification.
2 parents e0238bb + 1e97dea commit 7e69e2e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Management/PhpClient/Model/BulkResultResults.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -298,15 +298,6 @@ public function getResult()
298298
*/
299299
public function setResult($result)
300300
{
301-
$allowedValues = $this->getResultAllowableValues();
302-
if (!is_null($result) && !in_array($result, $allowedValues, true)) {
303-
throw new \InvalidArgumentException(
304-
sprintf(
305-
"Invalid value for 'result', must be one of '%s'",
306-
implode("', '", $allowedValues)
307-
)
308-
);
309-
}
310301
$this->container['result'] = $result;
311302

312303
return $this;

0 commit comments

Comments
 (0)