Update to Drupal 8.2.0. For more information, see https://www.drupal.org/project/drupal/releases/8.2.0

This commit is contained in:
Pantheon Automation 2016-10-06 15:16:20 -07:00 committed by Greg Anderson
parent 2f563ab520
commit f1c8716f57
1732 changed files with 52334 additions and 11780 deletions

View file

@ -573,7 +573,7 @@ class TwigExtension extends \Twig_Extension {
*
* @param \Twig_Environment $env
* A Twig_Environment instance.
* @param mixed[]|\Traversable|NULL $value
* @param mixed[]|\Traversable|null $value
* The pieces to join.
* @param string $glue
* The delimiter with which to join the string. Defaults to an empty string.

View file

@ -169,6 +169,9 @@ class TwigNodeTrans extends \Twig_Node {
}
}
}
elseif (!$body->hasAttribute('data')) {
throw new \Twig_Error_Syntax('{% trans %} tag cannot be empty');
}
else {
$text = $body->getAttribute('data');
}