Commit 1276970c by Alexander Makarov

Made $url default consistent

parent aeb25c39
......@@ -108,9 +108,9 @@ class BaseUrl
* @param string $url URL to remember. Default is current URL.
* @param string $name Name to use to remember URL. Defaults to `yii\web\User::returnUrlParam`.
*/
public function remember($url = null, $name = null)
public function remember($url = '', $name = null)
{
if ($url === null) {
if ($url === '') {
$url = Yii::$app->getRequest()->getUrl();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment