瀏覽代碼

Merge pull request #4028 from TeBoring/3.5.x

Add backslach to make class explict in global namespace
Paul Yang 7 年之前
父節點
當前提交
f69a5db66f
共有 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 {
         try {
             $this->mergeFromJsonArray($array);
             $this->mergeFromJsonArray($array);
-        } catch (Exception $e) {
+        } catch (\Exception $e) {
             throw new GPBDecodeException($e->getMessage());
             throw new GPBDecodeException($e->getMessage());
         }
         }
     }
     }