diff --git a/core/lib/Drupal/Core/Template/TwigExtension.php b/core/lib/Drupal/Core/Template/TwigExtension.php index affc38d..4748492 100644 --- a/core/lib/Drupal/Core/Template/TwigExtension.php +++ b/core/lib/Drupal/Core/Template/TwigExtension.php @@ -476,9 +476,8 @@ public function escapeFilter(\Twig_Environment $env, $arg, $strategy = 'html', $ * Wrapper around render() for twig printed output. * * If an object is passed which does not implement __toString(), - * RenderableInterface or toString() method an exception is thrown; - * Other objects are casted to string. If it already implements - * __toString(), it will throw an exception. However in the case that the + * RenderableInterface or toString() then an exception is thrown; + * Other objects are casted to string. However in the case that the * object is an instance of a Twig_Markup object it is returned directly * to support auto escaping. *