From e5d8e4adcb3a0d8e38c8e02d318f123081ff7ce2 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 11 Jun 2013 00:38:57 +0200 Subject: [PATCH] fixed usage of renamed method in Response --- framework/yii/web/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/web/Response.php b/framework/yii/web/Response.php index 7d56cc1..051850f 100644 --- a/framework/yii/web/Response.php +++ b/framework/yii/web/Response.php @@ -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) {