diff --git a/src/LaunchDarkly/LDClient.php b/src/LaunchDarkly/LDClient.php index c6f36446a..7665a63b8 100644 --- a/src/LaunchDarkly/LDClient.php +++ b/src/LaunchDarkly/LDClient.php @@ -80,12 +80,12 @@ public function toggle($key, $user, $default = false) { $this->_sendFlagRequestEvent($key, $user, $flag); return $flag; } - } catch (Exception $e) { + } catch (\Exception $e) { error_log("LaunchDarkly caught $e"); try { $this->_sendFlagRequestEvent($key, $user, $default); } - catch (Exception $e) { + catch (\Exception $e) { error_log("LaunchDarkly caught $e"); } return $default;