fix: use E_USER_ERROR for trigger_error calls (#9462)

* fix: use E_USER_ERROR for trigger_error calls

* fix: use E_USER_ERROR for trigger_error calls
pull/9493/head
David Supplee 3 years ago committed by GitHub
parent d5ef16c6eb
commit dfcbdb8ca0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      php/src/Google/Protobuf/Internal/DescriptorPool.php
  2. 2
      php/src/Google/Protobuf/Internal/Message.php

@ -159,7 +159,7 @@ class DescriptorPool
if (is_null($subdesc)) {
trigger_error(
'proto not added: ' . $proto
. " for " . $desc->getFullName(), E_ERROR);
. " for " . $desc->getFullName(), E_USER_ERROR);
}
$field->setMessageType($subdesc);
break;

@ -423,7 +423,7 @@ class Message
}
break;
case GPBType::GROUP:
trigger_error("Not implemented.", E_ERROR);
trigger_error("Not implemented.", E_USER_ERROR);
break;
case GPBType::MESSAGE:
if ($field->isMap()) {

Loading…
Cancel
Save