Commit e5d8e4ad by Carsten Brandt

fixed usage of renamed method in Response

parent a0762e7d
......@@ -158,7 +158,7 @@ class Response extends \yii\base\Response
public function setStatusCode($value, $text = null)
{
$this->_statusCode = (int)$value;
if ($this->isInvalid()) {
if ($this->getIsInvalid()) {
throw new InvalidParamException("The HTTP status code is invalid: $value");
}
if ($text === null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment