Browse Source

Added missing return statement.

PhpStorm is flagging this function as missing a return statement. Using a return statement (instead of the default) makes the intent of the source code clearer.
Mathew Foscarini 11 years ago
parent
commit
4957418a4b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/Cake/Network/CakeResponse.php

+ 1 - 0
lib/Cake/Network/CakeResponse.php

@@ -597,6 +597,7 @@ class CakeResponse {
 			return isset($headers['Location']) ? $headers['Location'] : null;
 		}
 		$this->header('Location', $url);
+		return null;
 	}
 
 /**