From 063f9c317ab0314a457dbd19bf4ed81deee1d8d1 Mon Sep 17 00:00:00 2001 From: Jens Segers Date: Sat, 6 Jun 2015 10:19:58 +0200 Subject: [PATCH] Use isset instead of resolved, fixes #11 --- .gitattributes | 1 + src/RollbarServiceProvider.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index a41e7c0..2d0892b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2,5 +2,6 @@ /.gitattributes export-ignore /.gitignore export-ignore /.travis.yml export-ignore +/.styleci.yml export-ignore /phpunit.xml export-ignore diff --git a/src/RollbarServiceProvider.php b/src/RollbarServiceProvider.php index feb7933..4133778 100644 --- a/src/RollbarServiceProvider.php +++ b/src/RollbarServiceProvider.php @@ -66,7 +66,7 @@ public function register() // are unsent error messages in the internal queue, so let's flush them. register_shutdown_function(function () use ($app) { - if ($app->resolved('rollbar.client')) + if (isset($app['rollbar.client'])) { $app['rollbar.client']->flush(); }