Skip to content
Permalink
Browse files

Wrong return type hint in Controller::redirect #9987

  • Loading branch information...
Javier Melero
Javier Melero committed Jan 9, 2017
1 parent cceeb34 commit ba121d8c32f02c2feaa058cc0ac00ba8e6f96f7d
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Cake/Controller/Controller.php
  2. +1 −1 lib/Cake/Controller/Scaffold.php
@@ -754,7 +754,7 @@ public function loadModel($modelClass = null, $id = null) {
* 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
*/
@@ -324,7 +324,7 @@ protected function _scaffoldDelete(CakeRequest $request) {
*
* @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) {

0 comments on commit ba121d8

Please sign in to comment.
You can’t perform that action at this time.