Skip to content

Commit

Permalink
Fixed #207: Replaced using Response as array
Browse files Browse the repository at this point in the history
  • Loading branch information
excelwebzone authored Jun 6, 2018
1 parent 68bbd53 commit d6b5a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator/Constraints/IsTrueValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function validate($value, Constraint $constraint)
$this->context->addViolation($constraint->message);
}
// Perform server side hostname check
elseif ($this->verifyHost && $response['hostname'] !== $masterRequest->getHost()) {
elseif ($this->verifyHost && $response->getHostname() !== $masterRequest->getHost()) {
$this->context->addViolation($constraint->invalidHostMessage);
}
}
Expand Down

0 comments on commit d6b5a8f

Please sign in to comment.