Skip to content

Commit a766c3e

Browse files
committed
Escape to global namespace to catch exceptions
1 parent 53d6e35 commit a766c3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LaunchDarkly/LDClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ public function toggle($key, $user, $default = false) {
8080
$this->_sendFlagRequestEvent($key, $user, $flag);
8181
return $flag;
8282
}
83-
} catch (Exception $e) {
83+
} catch (\Exception $e) {
8484
error_log("LaunchDarkly caught $e");
8585
try {
8686
$this->_sendFlagRequestEvent($key, $user, $default);
8787
}
88-
catch (Exception $e) {
88+
catch (\Exception $e) {
8989
error_log("LaunchDarkly caught $e");
9090
}
9191
return $default;

0 commit comments

Comments
 (0)