Commit 73d8e2f2 authored by Taylor Otwell's avatar Taylor Otwell

fixed arr::get argument order.

parent d802ae83
......@@ -5,12 +5,12 @@ class Arr {
/**
* Get an item from an array.
*
* @param string $key
* @param string $default
* @param array $array
* @param string $key
* @param array $default
* @return mixed
*/
public static function get($key, $default = null, $array = array())
public static function get($array, $key, $default = null)
{
if (is_null($key))
{
......
......@@ -41,7 +41,7 @@ class Input {
static::hydrate();
}
return Arr::get($key, $default, static::$input);
return Arr::get(static::$input, $key, $default);
}
/**
......@@ -77,7 +77,7 @@ class Input {
throw new \Exception("Sessions must be enabled to retrieve old input data.");
}
return Arr::get($key, $default, Session::get('laravel_old_input', array()));
return Arr::get(Session::get('laravel_old_input', array()), $key, $default);
}
/**
......
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