}
// object method
- $item = strtolower($item);
- if (isset(self::$cache[$class]['methods'][$item])) {
+ $lcItem = strtolower($item);
+ if (isset(self::$cache[$class]['methods'][$lcItem])) {
$method = $item;
- } elseif (isset(self::$cache[$class]['methods']['get'.$item])) {
+ } elseif (isset(self::$cache[$class]['methods']['get'.$lcItem])) {
$method = 'get'.$item;
} elseif (isset(self::$cache[$class]['methods']['__call'])) {
$method = $item;
// METHOD
array('bar', $object, 'bar', array(), $methodType),
array('bar', $object, 'getBar', array(), $methodType),
+ array('bar', $object, 'getbar', array(), $methodType),
array('foobar', $object, 'foobar', array(), $methodType),
array('babar', $object, 'babar', array(), $methodType),
array('babarStatic', $object, 'babarStatic', array(), $methodType),
array('__call_baz', $objectMagic, 'baz', array(), $methodType),
+ array('__call_Baz', $objectMagic, 'Baz', array(), $methodType),
// ANY
array('foo', $object, 'foo', array(), $anyType),
array('foo', $objectMagic, 'foo', array(), $anyType),
+ array('Foo', $objectMagic, 'Foo', array(), $anyType),
array(null, $object, 'null', array(), $anyType),
);
class Twig_TemplateObjectMagic
{
- public $attributes = array('foo' => 'foo');
+ public $attributes = array('foo' => 'foo', 'Foo' => 'Foo');
public function __isset($name)
{