{"action":"created","issue":{"url":"https://api.github.com/repos/php-amqplib/RabbitMqBundle/issues/391","repository_url":"https://api.github.com/repos/php-amqplib/RabbitMqBundle","labels_url":"https://api.github.com/repos/php-amqplib/RabbitMqBundle/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/php-amqplib/RabbitMqBundle/issues/391/comments","events_url":"https://api.github.com/repos/php-amqplib/RabbitMqBundle/issues/391/events","html_url":"https://github.com/php-amqplib/RabbitMqBundle/issues/391","id":181169997,"number":391,"title":"PHP Error due to bracket in PHP 5.3","user":{"login":"ariault-blanchard","id":1443475,"avatar_url":"https://avatars.githubusercontent.com/u/1443475?v=3","gravatar_id":"","url":"https://api.github.com/users/ariault-blanchard","html_url":"https://github.com/ariault-blanchard","followers_url":"https://api.github.com/users/ariault-blanchard/followers","following_url":"https://api.github.com/users/ariault-blanchard/following{/other_user}","gists_url":"https://api.github.com/users/ariault-blanchard/gists{/gist_id}","starred_url":"https://api.github.com/users/ariault-blanchard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariault-blanchard/subscriptions","organizations_url":"https://api.github.com/users/ariault-blanchard/orgs","repos_url":"https://api.github.com/users/ariault-blanchard/repos","events_url":"https://api.github.com/users/ariault-blanchard/events{/privacy}","received_events_url":"https://api.github.com/users/ariault-blanchard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-05T14:24:44Z","updated_at":"2016-10-06T07:46:41Z","closed_at":"2016-10-05T14:46:15Z","body":"Hi,\r\n\r\nWhile i was using composer to get this bundle, i've seen an error during the process : \r\n\r\n```\r\n13:31:36  ** [out :: 10.34.149.24] PHP Parse error:  syntax error, unexpected '[' in /docs/releases/20161005132929/vendor/php-amqplib/rabbitmq-bundle/DependencyInjection/Compiler/InjectEventDispatcherPass.php on line 33\r\n```\r\n\r\nThe problem is that there is bracket instead of curly bracket in this file : `RabbitMqBundle/DependencyInjection/Compiler/InjectEventDispatcherPass.php`.\r\n\r\nSo if you are on PHP 5.3, it'll throw a parse error.\r\n\r\n```\r\n    $definition->addMethodCall(\r\n        'setEventDispatcher',\r\n        [\r\n            new Reference(self::EVENT_DISPATCHER_SERVICE_ID, ContainerInterface::IGNORE_ON_INVALID_REFERENCE)\r\n        ]\r\n    );\r\n```\r\n\r\nTo make it compatible with PHP 5.3, it should be : \r\n\r\n```\r\n    $definition->addMethodCall(\r\n        'setEventDispatcher',\r\n        array(\r\n            new Reference(self::EVENT_DISPATCHER_SERVICE_ID, ContainerInterface::IGNORE_ON_INVALID_REFERENCE)\r\n        )\r\n    );\r\n```\r\n\r\nRegards.\r\n\r\nAB."},"comment":{"url":"https://api.github.com/repos/php-amqplib/RabbitMqBundle/issues/comments/251890703","html_url":"https://github.com/php-amqplib/RabbitMqBundle/issues/391#issuecomment-251890703","issue_url":"https://api.github.com/repos/php-amqplib/RabbitMqBundle/issues/391","id":251890703,"user":{"login":"ariault-blanchard","id":1443475,"avatar_url":"https://avatars.githubusercontent.com/u/1443475?v=3","gravatar_id":"","url":"https://api.github.com/users/ariault-blanchard","html_url":"https://github.com/ariault-blanchard","followers_url":"https://api.github.com/users/ariault-blanchard/followers","following_url":"https://api.github.com/users/ariault-blanchard/following{/other_user}","gists_url":"https://api.github.com/users/ariault-blanchard/gists{/gist_id}","starred_url":"https://api.github.com/users/ariault-blanchard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ariault-blanchard/subscriptions","organizations_url":"https://api.github.com/users/ariault-blanchard/orgs","repos_url":"https://api.github.com/users/ariault-blanchard/repos","events_url":"https://api.github.com/users/ariault-blanchard/events{/privacy}","received_events_url":"https://api.github.com/users/ariault-blanchard/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T07:46:41Z","updated_at":"2016-10-06T07:46:41Z","body":"Thx :)"}}
{"actor":{"display_login":"ariault-blanchard"}}