Updating doc block and exception in CakeRequest.

This commit is contained in:
mark_story 2010-07-01 12:00:53 -04:00
parent a7a4285a80
commit 81d03857d7

View file

@ -422,7 +422,7 @@ class CakeRequest implements ArrayAccess {
$type = strtolower(substr($name, 2));
return $this->is($type);
}
throw new BadMethodCallException('Method does not exist');
throw new BadMethodCallException(sprintf('Method %s does not exist', $name));
}
/**
@ -539,7 +539,7 @@ class CakeRequest implements ArrayAccess {
}
/**
* Read a header from the Request information.
* Read an HTTP header from the Request information.
*
* @param string $name Name of the header you want.
* @return mixed Either false on no header being set or the value of the header.