Changes for core/lib/Drupal/Component/Utility/ToStringTrait.php: 1 added line, 1 removed line.
Original line number
Diff line number
Diff line
@@ -17,7 +17,7 @@ public function __toString() {
catch(\Exception$e){
// User errors in __toString() methods are considered fatal in the Drupal
// error handler.
trigger_error(get_class($e).' thrown while calling __toString on a '.get_class($this).' 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_ERROR);
// 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