mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Updating doc block and exception in CakeRequest.
This commit is contained in:
parent
a7a4285a80
commit
81d03857d7
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue