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

Commit

Permalink
Merge branch 'hotfix/4246'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Apr 17, 2013
2 parents 79a1d65 + d56d5d1 commit 464835b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Response.php
Expand Up @@ -239,7 +239,7 @@ public function getCookie()
*/
public function setStatusCode($code)
{
$const = get_called_class() . '::STATUS_CODE_' . $code;
$const = get_class($this) . '::STATUS_CODE_' . $code;
if (!is_numeric($code) || !defined($const)) {
$code = is_scalar($code) ? $code : gettype($code);
throw new Exception\InvalidArgumentException(sprintf(
Expand Down

0 comments on commit 464835b

Please sign in to comment.