Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd839eb

Browse files
committed
Allow for checking whether there is any old input by making parameter optional.
1 parent c2a0cdf commit dd839eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Illuminate/Session/Store.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function get($name, $default = null)
6060
* @param string $key
6161
* @return bool
6262
*/
63-
public function hasOldInput($key)
63+
public function hasOldInput($key = null)
6464
{
6565
return ! is_null($this->getOldInput($key));
6666
}
@@ -249,4 +249,4 @@ public function regenerate()
249249
return $this->migrate();
250250
}
251251

252-
}
252+
}

0 commit comments

Comments
 (0)