mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 01:46:37 +00:00
removed obsolete code
This commit is contained in:
@@ -375,14 +375,6 @@ abstract class Twig_Template implements Twig_TemplateInterface
|
||||
|
||||
// object property
|
||||
if (Twig_TemplateInterface::METHOD_CALL !== $type) {
|
||||
/* apparently, this is not needed as this is already covered by the array_key_exists() call below
|
||||
if (!isset(self::$cache[$class]['properties'])) {
|
||||
foreach (get_object_vars($object) as $k => $v) {
|
||||
self::$cache[$class]['properties'][$k] = true;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
if (isset($object->$item) || array_key_exists($item, $object)) {
|
||||
if ($isDefinedTest) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user