Browse Source

Add backslach to make class explict in global namespace

Bo Yang 7 năm trước cách đây
mục cha
commit
3b13c3f02e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      php/src/Google/Protobuf/Internal/Message.php

+ 1 - 1
php/src/Google/Protobuf/Internal/Message.php

@@ -1111,7 +1111,7 @@ class Message
         }
         try {
             $this->mergeFromJsonArray($array);
-        } catch (Exception $e) {
+        } catch (\Exception $e) {
             throw new GPBDecodeException($e->getMessage());
         }
     }