{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/9090","labels_url":"https://api.github.com/repos/laravel/framework/issues/9090/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/9090/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/9090/events","html_url":"https://github.com/laravel/framework/issues/9090","id":85534211,"number":9090,"title":"[5.1] phpunit 'type' function doesn't support square brackets for the name","user":{"login":"ArthurGuy","id":92837,"avatar_url":"https://avatars.githubusercontent.com/u/92837?v=3","gravatar_id":"","url":"https://api.github.com/users/ArthurGuy","html_url":"https://github.com/ArthurGuy","followers_url":"https://api.github.com/users/ArthurGuy/followers","following_url":"https://api.github.com/users/ArthurGuy/following{/other_user}","gists_url":"https://api.github.com/users/ArthurGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/ArthurGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArthurGuy/subscriptions","organizations_url":"https://api.github.com/users/ArthurGuy/orgs","repos_url":"https://api.github.com/users/ArthurGuy/repos","events_url":"https://api.github.com/users/ArthurGuy/events{/privacy}","received_events_url":"https://api.github.com/users/ArthurGuy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-05T13:33:00Z","updated_at":"2015-06-05T13:33:00Z","closed_at":null,"body":"When using the new unit testing functionality and the form filling function `type` it wont let me target form field with a name containing a square bracket.\r\n```html\r\n<input type=\"text\" name=\"address[line_1]\" />\r\n```\r\n\r\n```php\r\n$this->type($faker->streetAddress, 'address[line_1]');\r\n```\r\n\r\nIt has trouble with the bracket and returns the following\r\n```\r\nSymfony\\Component\\CssSelector\\Exception\\SyntaxErrorException: Expected \"]\", but <delimiter \"[\" at 33> found.\r\n```\r\nEscaping the square brackets doesn't seem to be an option either."}}