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