fix closure arguments in Arr::where

This commit is contained in:
Pig Fang 2018-07-11 16:07:29 +08:00
parent 3db7799b65
commit 5f3155baa4

View File

@ -20,7 +20,7 @@ class UserRepository extends Repository
if ($type == "uid") {
return Arr::has($this->items, $identification);
} else {
return (bool) Arr::where((array) $this->items, function($key, $value) use ($identification, $type) {
return (bool) Arr::where((array) $this->items, function($value) use ($identification, $type) {
if (property_exists($value, $type))
return false;
@ -60,7 +60,7 @@ class UserRepository extends Repository
return null;
}
$result = Arr::where((array) $this->items, function($key, $value) use ($identification, $type) {
$result = Arr::where((array) $this->items, function($value) use ($identification, $type) {
if (property_exists($value, $type))
return false;