{"action":"created","issue":{"url":"https://api.github.com/repos/th3n3rd/cartesian-product/issues/6","labels_url":"https://api.github.com/repos/th3n3rd/cartesian-product/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/th3n3rd/cartesian-product/issues/6/comments","events_url":"https://api.github.com/repos/th3n3rd/cartesian-product/issues/6/events","html_url":"https://github.com/th3n3rd/cartesian-product/issues/6","id":82677436,"number":6,"title":"Arrays as items must be wrapped in an extra array","user":{"login":"sagikazarmark","id":1226384,"avatar_url":"https://avatars.githubusercontent.com/u/1226384?v=3","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-30T03:05:51Z","updated_at":"2015-05-30T08:44:48Z","closed_at":"2015-05-30T08:42:25Z","body":"I have the following data set:\r\n\r\n``` php\r\n[\r\n\t'methods' => ['GET', 'POST', 'PUT'],\r\n\t'uri' => ['uri'],\r\n\t'headers' => [\r\n\t\t[],\r\n\t\t[\r\n\t\t\t'Content-Type' => 'text/html'\r\n\t\t]\r\n\t],\r\n]\r\n```\r\n\r\nFor some reasons the headers array is getting merged into the main product unless I wrap them into an extra array.\r\n\r\nI think it is because of [this](https://github.com/th3n3rd/cartesian-product/blob/master/src/Set.php#L44) check.\r\n\r\nCan you confirm that?"},"comment":{"url":"https://api.github.com/repos/th3n3rd/cartesian-product/issues/comments/107010521","html_url":"https://github.com/th3n3rd/cartesian-product/issues/6#issuecomment-107010521","issue_url":"https://api.github.com/repos/th3n3rd/cartesian-product/issues/6","id":107010521,"user":{"login":"sagikazarmark","id":1226384,"avatar_url":"https://avatars.githubusercontent.com/u/1226384?v=3","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T08:44:48Z","updated_at":"2015-05-30T08:44:48Z","body":"Maybe a new tag would be appropriate"}}