Commit 22e7f87c authored by webchick's avatar webchick

Issue #2176397 by carsato, InternetDevels:...

Issue #2176397 by carsato, InternetDevels: Drupal\Core\Template\TwigTemplate::getContextReference is final.
parent f9bb7739
......@@ -39,8 +39,7 @@ abstract class TwigTemplate extends \Twig_Template {
* @return mixed
* The requested variable.
final protected function getContextReference(&$context, $item)
protected function getContextReference(&$context, $item) {
// Optimized version. NULL is a valid value for $context[$item], we only
// want to error if it hasn't been defined at all.
if (!isset($context[$item]) && !array_key_exists($item, $context)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment