ソースを参照

Add backslach to make class explict in global namespace

Bo Yang 7 年 前
コミット
3b13c3f02e
1 ファイル変更1 行追加1 行削除
  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());
         }
     }