소스 검색

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());
         }
     }