Skip to content

Commit

Permalink
Fix creating the agent from container
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Jun 7, 2024
1 parent 23f6a3e commit 9472615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/fixtures/laravel11-app-with-exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
})
->withExceptions(function (Exceptions $exceptions) {
$exceptions->reportable(function (Throwable $e) {
$this->container->make(\Scoutapm\ScoutApmAgent::class)->recordThrowable($e);
app()->make(\Scoutapm\ScoutApmAgent::class)->recordThrowable($e);
});
})->create();

0 comments on commit 9472615

Please sign in to comment.