{"action":"closed","issue":{"url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2257","repository_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole","labels_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2257/labels{/name}","comments_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2257/comments","events_url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/issues/2257/events","html_url":"https://github.com/hechoendrupal/DrupalConsole/issues/2257","id":154806528,"number":2257,"title":"Wrong datatype of variable in rulesaction.php.twig","user":{"login":"naveenvalecha","id":2075378,"avatar_url":"https://avatars.githubusercontent.com/u/2075378?v=3","gravatar_id":"","url":"https://api.github.com/users/naveenvalecha","html_url":"https://github.com/naveenvalecha","followers_url":"https://api.github.com/users/naveenvalecha/followers","following_url":"https://api.github.com/users/naveenvalecha/following{/other_user}","gists_url":"https://api.github.com/users/naveenvalecha/gists{/gist_id}","starred_url":"https://api.github.com/users/naveenvalecha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naveenvalecha/subscriptions","organizations_url":"https://api.github.com/users/naveenvalecha/orgs","repos_url":"https://api.github.com/users/naveenvalecha/repos","events_url":"https://api.github.com/users/naveenvalecha/events{/privacy}","received_events_url":"https://api.github.com/users/naveenvalecha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hechoendrupal/DrupalConsole/labels/bug","name":"bug","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-13T21:46:09Z","updated_at":"2016-05-15T02:32:44Z","closed_at":"2016-05-15T02:32:44Z","body":"```\r\n  public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {\r\n    /** @var \\Drupal\\user\\UserInterface $object */\r\n    $access = $object->status->access('edit', $account, TRUE)\r\n      ->andIf($object->access('update', $account, TRUE));\r\n\r\n    return $return_as_object ? $access : $access->isAllowed();\r\n  }\r\n```\r\n\r\nHere $object is the **object to execute the action on.** it can be any entity type. See in the screenshot below : \r\n\r\n<img width=\"782\" alt=\"screen shot 2016-05-14 at 03 13 38\" src=\"https://cloud.githubusercontent.com/assets/2075378/15262778/2f40ccb8-1982-11e6-9aba-a89869407a1d.png\">\r\n\r\n\r\n\r\n**Solution**:\r\nRemove this variable hinting.\r\nAny other solution welcome."}}