From ba121d8c32f02c2feaa058cc0ac00ba8e6f96f7d Mon Sep 17 00:00:00 2001 From: Javier Melero Date: Mon, 9 Jan 2017 07:38:41 -0300 Subject: [PATCH] Wrong return type hint in Controller::redirect #9987 --- lib/Cake/Controller/Controller.php | 2 +- lib/Cake/Controller/Scaffold.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Controller/Controller.php b/lib/Cake/Controller/Controller.php index b3d49e3df..7566c35fd 100644 --- a/lib/Cake/Controller/Controller.php +++ b/lib/Cake/Controller/Controller.php @@ -754,7 +754,7 @@ class Controller extends CakeObject implements CakeEventListener { * or an absolute URL * @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 - * @return \Cake\Network\Response|null + * @return CakeResponse|null * @triggers Controller.beforeRedirect $this, array($url, $status, $exit) * @link http://book.cakephp.org/2.0/en/controllers.html#Controller::redirect */ diff --git a/lib/Cake/Controller/Scaffold.php b/lib/Cake/Controller/Scaffold.php index 01e50879c..a7fc531e0 100644 --- a/lib/Cake/Controller/Scaffold.php +++ b/lib/Cake/Controller/Scaffold.php @@ -324,7 +324,7 @@ class Scaffold { * * @param string $message Message to display * @param string $element Flash template to use - * @return \Cake\Network\Response|null + * @return CakeResponse|null */ protected function _sendMessage($message, $element = 'default') { if ($this->_validSession) {