symfony/symfony — pull request #10334 by lyrixx (2014-02-26 15:53:15+00:00)
Title: [ExpressionLanguage] Added a failing test to prove that EL does not respect 'lazy operator'

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | no
| Fixed tickets | no
| License | MIT
| Doc PR | no

```php

/**
* @Method("GET")
* @Route("/foobar", name="foobar")
* @Template()
* @Security("is_granted('ROLE_USER') and user.foobar()")
*/
public function foobarAction()
{

}
```

If the user is not connected, this throw an exception: `RuntimeException: "Unable to get a property
on a non-object."` in `vendor/symfony/symfony/src/Symfony/Component/ExpressionLan
guage/Node/GetAttrNode.php at line 78`.