mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Grammar fixes
@return will accept the `|` or operator to define multiple return types. Don't use the word `or`.
This commit is contained in:
parent
c930bbb0b3
commit
bb726d58ba
1 changed files with 3 additions and 3 deletions
|
@ -694,10 +694,10 @@ class Router {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the either the current request object, or the first one.
|
||||
* Gets the current request object, or the first one.
|
||||
*
|
||||
* @param boolean $current Whether you want the request from the top of the stack or the first one.
|
||||
* @return CakeRequest or null.
|
||||
* @param boolean $current True to get the current request object, or False to get the first one.
|
||||
* @return CakeRequest|null Null if stack is empty.
|
||||
*/
|
||||
public static function getRequest($current = false) {
|
||||
if ($current) {
|
||||
|
|
Loading…
Reference in a new issue