@trigger_error(__METHOD__.'() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942',E_USER_DEPRECATED);
@trigger_error(__METHOD__.'() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3337942',E_USER_DEPRECATED);
// User errors in __toString() methods are considered fatal in the Drupal
// error handler.
trigger_error(get_class($e).' thrown while calling __toString on a '.static::class.' object in '.$e->getFile().' on line '.$e->getLine().': '.$e->getMessage(),E_USER_ERROR);
trigger_error(get_class($e).' thrown while calling __toString on a '.static::class.' object in '.$e->getFile().' on line '.$e->getLine().': '.$e->getMessage(),E_USER_WARNING);
// In case we are using another error handler that did not fatal on the
// E_USER_ERROR, we terminate execution. However, for test purposes allow