Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Array fix for older PHP versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubOleksy committed Jan 14, 2015
1 parent c56c3f9 commit 05cff12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ApplicationInsights/Telemetry_Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function trackMetric($name, $value, $type = NULL, $count = NULL, $min = N
$dataPoiint->setStdDev($stdDev);

$data = new Channel\Contracts\Metric_Data();
$data->setMetrics([$dataPoiint]);
$data->setMetrics(array($dataPoiint));
if ($properties != NULL)
{
$data->setProperties($properties);
Expand Down Expand Up @@ -231,7 +231,7 @@ public function trackException(\Exception $ex, $properties = NULL, $measurements

$data = new Channel\Contracts\Exception_Data();
$data->setHandledAt('UserCode');
$data->setExceptions([$details]);
$data->setExceptions(array($details));

if ($properties != NULL)
{
Expand Down

0 comments on commit 05cff12

Please sign in to comment.