mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-03 14:07:34 +00:00
Remove obsolete code
This commit is contained in:
@@ -1736,10 +1736,6 @@ final class CoreExtension extends AbstractExtension
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($sandboxed) {
|
||||
$env->getExtension(SandboxExtension::class)->checkPropertyAllowed($object, $item, $lineno, $source);
|
||||
}
|
||||
|
||||
return isset($object->$item) ? $object->$item : ((array) $object)[(string) $item];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user