segment_track defaults parameters to an empty array

This commit is contained in:
James Brooks
2015-05-23 13:29:01 +01:00
parent 01b6bb1c2b
commit 1af50d991e

View File

@@ -80,7 +80,7 @@ if (!function_exists('segment_track')) {
*
* @return bool
*/
function segment_track($event, array $properties)
function segment_track($event, array $properties = [])
{
if (Config::get('segment.write_key')) {
try {