Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/4452' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,7 @@ class Result
*/
public function __construct($code, $identity, array $messages = array())
{
$code = (int) $code;

if ($code < self::FAILURE_UNCATEGORIZED) {
$code = self::FAILURE;
} elseif ($code > self::SUCCESS) {
$code = 1;
}

$this->code = $code;
$this->code = (int) $code;
$this->identity = $identity;
$this->messages = $messages;
}
Expand Down

0 comments on commit be2e912

Please sign in to comment.