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

Skip to content

Commit 0133624

Browse files
author
Phil Sturgeon
committed
Removed caching for Input::json().
1 parent 9e56865 commit 0133624

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/Illuminate/Http/Request.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,7 @@ public function json($key = null, $default = null)
392392
return $default;
393393
}
394394

395-
static $json;
396-
397-
if ( ! isset($json))
398-
{
399-
$json = json_decode($this->getContent(), true);
400-
}
395+
$json = json_decode($this->getContent(), true);
401396

402397
return array_get($json, $key, $default);
403398
}

0 commit comments

Comments
 (0)