{"action":"created","issue":{"url":"https://api.github.com/repos/zendframework/zend-code/issues/12","labels_url":"https://api.github.com/repos/zendframework/zend-code/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/zendframework/zend-code/issues/12/comments","events_url":"https://api.github.com/repos/zendframework/zend-code/issues/12/events","html_url":"https://github.com/zendframework/zend-code/pull/12","id":113988056,"number":12,"title":"Added the creation of array with short syntax","user":{"login":"RalfEggert","id":1562549,"avatar_url":"https://avatars.githubusercontent.com/u/1562549?v=3","gravatar_id":"","url":"https://api.github.com/users/RalfEggert","html_url":"https://github.com/RalfEggert","followers_url":"https://api.github.com/users/RalfEggert/followers","following_url":"https://api.github.com/users/RalfEggert/following{/other_user}","gists_url":"https://api.github.com/users/RalfEggert/gists{/gist_id}","starred_url":"https://api.github.com/users/RalfEggert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RalfEggert/subscriptions","organizations_url":"https://api.github.com/users/RalfEggert/orgs","repos_url":"https://api.github.com/users/RalfEggert/repos","events_url":"https://api.github.com/users/RalfEggert/events{/privacy}","received_events_url":"https://api.github.com/users/RalfEggert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zendframework/zend-code/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-29T06:15:42Z","updated_at":"2015-10-29T07:52:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zendframework/zend-code/pulls/12","html_url":"https://github.com/zendframework/zend-code/pull/12","diff_url":"https://github.com/zendframework/zend-code/pull/12.diff","patch_url":"https://github.com/zendframework/zend-code/pull/12.patch"},"body":"Added the creation of shorty syntax arrays.\r\n\r\nThis is the new behaviour:\r\n\r\n```\r\n$expectedSource = <<<EOS\r\n[\r\n    'foo',\r\n]\r\nEOS;\r\n\r\n$valueGenerator = new ValueGenerator();\r\n$valueGenerator->setValue(['foo']);\r\n$valueGenerator->setType(ValueGenerator::TYPE_ARRAY_SHORT);\r\n\r\nvar_dump($expectedSource === $valueGenerator->generate()); /// Outputs true\r\n```\r\n\r\nThe old behaviour still works as expected and is the default behaviour:\r\n\r\n```\r\n$expectedSource = <<<EOS\r\narray(\r\n    'foo',\r\n)\r\nEOS;\r\n\r\n$valueGenerator = new ValueGenerator();\r\n$valueGenerator->setValue(['foo']);\r\n\r\nvar_dump($expectedSource === $valueGenerator->generate()); /// Outputs true\r\n```\r\n\r\nShould fix issue #9 "},"comment":{"url":"https://api.github.com/repos/zendframework/zend-code/issues/comments/152105778","html_url":"https://github.com/zendframework/zend-code/pull/12#issuecomment-152105778","issue_url":"https://api.github.com/repos/zendframework/zend-code/issues/12","id":152105778,"user":{"login":"RalfEggert","id":1562549,"avatar_url":"https://avatars.githubusercontent.com/u/1562549?v=3","gravatar_id":"","url":"https://api.github.com/users/RalfEggert","html_url":"https://github.com/RalfEggert","followers_url":"https://api.github.com/users/RalfEggert/followers","following_url":"https://api.github.com/users/RalfEggert/following{/other_user}","gists_url":"https://api.github.com/users/RalfEggert/gists{/gist_id}","starred_url":"https://api.github.com/users/RalfEggert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RalfEggert/subscriptions","organizations_url":"https://api.github.com/users/RalfEggert/orgs","repos_url":"https://api.github.com/users/RalfEggert/repos","events_url":"https://api.github.com/users/RalfEggert/events{/privacy}","received_events_url":"https://api.github.com/users/RalfEggert/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T07:52:18Z","updated_at":"2015-10-29T07:52:18Z","body":"@Maks3w could you please clarify what you mean by \"using data providers\" for the test?"}}