Skip to content

Commit

Permalink
Use Throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed May 17, 2020
1 parent cbc4e75 commit 90edf0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MSApplicationInsightsHelpers.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Marchie\MSApplicationInsightsLaravel;

use Exception;
use Throwable;
use GuzzleHttp\Exception\RequestException;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
Expand Down Expand Up @@ -75,7 +75,7 @@ public function trackRequest($request, $response)
*
* @param Exception $e
*/
public function trackException(Exception $e)
public function trackException(Throwable $e)
{
if ($this->telemetryEnabled()) {
$this->msApplicationInsights->telemetryClient->trackException($e,
Expand All @@ -94,7 +94,7 @@ public function trackException(Exception $e)
*
* @return array|null
*/
private function getRequestPropertiesFromException(Exception $e)
private function getRequestPropertiesFromException(Throwable $e)
{
foreach ($e->getTrace() as $item)
{
Expand Down

0 comments on commit 90edf0a

Please sign in to comment.