{"action":"created","issue":{"url":"https://api.github.com/repos/craue/CraueFormFlowBundle/issues/189","labels_url":"https://api.github.com/repos/craue/CraueFormFlowBundle/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/craue/CraueFormFlowBundle/issues/189/comments","events_url":"https://api.github.com/repos/craue/CraueFormFlowBundle/issues/189/events","html_url":"https://github.com/craue/CraueFormFlowBundle/issues/189","id":97345432,"number":189,"title":"$options['validation_groups'] returns string instead of array ","user":{"login":"webdevilopers","id":3479626,"avatar_url":"https://avatars.githubusercontent.com/u/3479626?v=3","gravatar_id":"","url":"https://api.github.com/users/webdevilopers","html_url":"https://github.com/webdevilopers","followers_url":"https://api.github.com/users/webdevilopers/followers","following_url":"https://api.github.com/users/webdevilopers/following{/other_user}","gists_url":"https://api.github.com/users/webdevilopers/gists{/gist_id}","starred_url":"https://api.github.com/users/webdevilopers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdevilopers/subscriptions","organizations_url":"https://api.github.com/users/webdevilopers/orgs","repos_url":"https://api.github.com/users/webdevilopers/repos","events_url":"https://api.github.com/users/webdevilopers/events{/privacy}","received_events_url":"https://api.github.com/users/webdevilopers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-26T19:59:38Z","updated_at":"2016-01-17T12:12:13Z","closed_at":null,"body":"I recently updated a two month old project with `Symfony` **2.6.11** and `CraueFormBundle` **2.1.8**.\r\n\r\nSuddenly I get this error:\r\n**Error: [] operator not supported for strings**\r\n\r\nThis is cause by my `getFormOptions` method:\r\n```php\r\n    public function getFormOptions($step, array $options = array())\r\n    {\r\n        $options = parent::getFormOptions($step, $options);\r\n        dump($options);\r\n        $options['validation_groups'][] = 'priceQuoteRequest';\r\n        return $options;\r\n    }\r\n```\r\n\r\nThe dump returns a string for `validation_groups`. This seemd to work fine before.\r\nHas this behaviour changed?\r\n\r\nRelated issues:\r\n* https://github.com/craue/CraueFormFlowBundle/issues/96\r\n* https://github.com/craue/CraueFormFlowBundle/pull/117"},"comment":{"url":"https://api.github.com/repos/craue/CraueFormFlowBundle/issues/comments/172318259","html_url":"https://github.com/craue/CraueFormFlowBundle/issues/189#issuecomment-172318259","issue_url":"https://api.github.com/repos/craue/CraueFormFlowBundle/issues/189","id":172318259,"user":{"login":"craue","id":800119,"avatar_url":"https://avatars.githubusercontent.com/u/800119?v=3","gravatar_id":"","url":"https://api.github.com/users/craue","html_url":"https://github.com/craue","followers_url":"https://api.github.com/users/craue/followers","following_url":"https://api.github.com/users/craue/following{/other_user}","gists_url":"https://api.github.com/users/craue/gists{/gist_id}","starred_url":"https://api.github.com/users/craue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craue/subscriptions","organizations_url":"https://api.github.com/users/craue/orgs","repos_url":"https://api.github.com/users/craue/repos","events_url":"https://api.github.com/users/craue/events{/privacy}","received_events_url":"https://api.github.com/users/craue/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T12:12:13Z","updated_at":"2016-01-17T12:12:13Z","body":"At the point where you call `dump($options)` the default value of `$options['validation_groups']` has always been a string until #117 was merged, may it be with version 1.0.0, 2.0.0, 2.1.0, or 2.1.9. Maybe you've been using dev-master initially and downgraded to 2.1.8 afterwards. Apart from that, I don't see what could explain the issue you describe. So your workaround is valid for 2.x, but wouldn't be needed anymore for upcoming 3.x."}}