Explorar o código

Add backslach to make class explict in global namespace

Bo Yang %!s(int64=7) %!d(string=hai) anos
pai
achega
3b13c3f02e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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());
         }
     }