mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Wrong return type hint in Controller::redirect #9987
This commit is contained in:
parent
cceeb34d1d
commit
ba121d8c32
2 changed files with 2 additions and 2 deletions
|
@ -754,7 +754,7 @@ class Controller extends CakeObject implements CakeEventListener {
|
||||||
* or an absolute URL
|
* or an absolute URL
|
||||||
* @param int|array|null $status HTTP status code (eg: 301). Defaults to 302 when null is passed.
|
* @param int|array|null $status HTTP status code (eg: 301). Defaults to 302 when null is passed.
|
||||||
* @param bool $exit If true, exit() will be called after the redirect
|
* @param bool $exit If true, exit() will be called after the redirect
|
||||||
* @return \Cake\Network\Response|null
|
* @return CakeResponse|null
|
||||||
* @triggers Controller.beforeRedirect $this, array($url, $status, $exit)
|
* @triggers Controller.beforeRedirect $this, array($url, $status, $exit)
|
||||||
* @link http://book.cakephp.org/2.0/en/controllers.html#Controller::redirect
|
* @link http://book.cakephp.org/2.0/en/controllers.html#Controller::redirect
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -324,7 +324,7 @@ class Scaffold {
|
||||||
*
|
*
|
||||||
* @param string $message Message to display
|
* @param string $message Message to display
|
||||||
* @param string $element Flash template to use
|
* @param string $element Flash template to use
|
||||||
* @return \Cake\Network\Response|null
|
* @return CakeResponse|null
|
||||||
*/
|
*/
|
||||||
protected function _sendMessage($message, $element = 'default') {
|
protected function _sendMessage($message, $element = 'default') {
|
||||||
if ($this->_validSession) {
|
if ($this->_validSession) {
|
||||||
|
|
Loading…
Reference in a new issue