Skip to content

Commit

Permalink
correct variable name, and update reject callback
Browse files Browse the repository at this point in the history
Wrong variable name inside the callback, and replaced is_null with empty function because strtoupper function applied before returned an empty string when applied to null values, therefore is_null wont reject after strtoupper.
  • Loading branch information
rumeau committed Feb 25, 2015
1 parent 46b91b2 commit a6bff33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The `Illuminate\Support\Collection` class provides a fluent, convenient wrapper
})
->reject(function($name)
{
return is_null($value);
return empty($name);
});


Expand Down

0 comments on commit a6bff33

Please sign in to comment.