mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
httpStatusCode 를 정수형으로 만들기
This commit is contained in:
parent
107996918e
commit
29507df48f
6 changed files with 12 additions and 12 deletions
|
|
@ -31,7 +31,7 @@ class Object
|
|||
* http status code.
|
||||
* @var int
|
||||
*/
|
||||
var $httpStatusCode = NULL;
|
||||
var $httpStatusCode = 200;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
|
@ -73,9 +73,9 @@ class Object
|
|||
* @param int $code HTTP status code. Default value is `200` that means successful
|
||||
* @return void
|
||||
*/
|
||||
function setHttpStatusCode($code = '200')
|
||||
function setHttpStatusCode($code = 200)
|
||||
{
|
||||
$this->httpStatusCode = $code;
|
||||
$this->httpStatusCode = (int) $code;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue