{"action":"opened","number":272,"pull_request":{"url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/pulls/272","id":62875531,"html_url":"https://github.com/wsdl2phpgenerator/wsdl2phpgenerator/pull/272","diff_url":"https://github.com/wsdl2phpgenerator/wsdl2phpgenerator/pull/272.diff","patch_url":"https://github.com/wsdl2phpgenerator/wsdl2phpgenerator/pull/272.patch","issue_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/issues/272","number":272,"state":"open","locked":false,"title":"Element should be an array when maxOccurs is a number","user":{"login":"gtv-p-vanpoucke","id":6287422,"avatar_url":"https://avatars.githubusercontent.com/u/6287422?v=3","gravatar_id":"","url":"https://api.github.com/users/gtv-p-vanpoucke","html_url":"https://github.com/gtv-p-vanpoucke","followers_url":"https://api.github.com/users/gtv-p-vanpoucke/followers","following_url":"https://api.github.com/users/gtv-p-vanpoucke/following{/other_user}","gists_url":"https://api.github.com/users/gtv-p-vanpoucke/gists{/gist_id}","starred_url":"https://api.github.com/users/gtv-p-vanpoucke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtv-p-vanpoucke/subscriptions","organizations_url":"https://api.github.com/users/gtv-p-vanpoucke/orgs","repos_url":"https://api.github.com/users/gtv-p-vanpoucke/repos","events_url":"https://api.github.com/users/gtv-p-vanpoucke/events{/privacy}","received_events_url":"https://api.github.com/users/gtv-p-vanpoucke/received_events","type":"User","site_admin":false},"body":"I found that not all elements in a WSDL document that should be an array, where found to be one.  In the _isElementArray_ function in [_TypeNode.php_](src/Xml/TypeNode.php) only elements with the attribute _maxOccurs_ set to _unbounded_ where found to be an array.  I changed the test, so elements with the attribute _maxOccurs_ set to 2 or higher where also found to be an array.\r\n\r\nI've tested this code with only one type of WSDL and have not found drawbacks in other parts of the could.  I do not know if there are checks for arrays, to be found invalid, if there are more items than _maxOccurs_ specifies.  But for my code that was no issue.","created_at":"2016-03-15T09:24:41Z","updated_at":"2016-03-15T09:24:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/pulls/272/commits","review_comments_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/pulls/272/comments","review_comment_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/issues/272/comments","statuses_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/statuses/6447674cd313ce0595cd20398e3ea4ffacb365d9","head":{"label":"gtv-p-vanpoucke:master","ref":"master","sha":"6447674cd313ce0595cd20398e3ea4ffacb365d9","user":{"login":"gtv-p-vanpoucke","id":6287422,"avatar_url":"https://avatars.githubusercontent.com/u/6287422?v=3","gravatar_id":"","url":"https://api.github.com/users/gtv-p-vanpoucke","html_url":"https://github.com/gtv-p-vanpoucke","followers_url":"https://api.github.com/users/gtv-p-vanpoucke/followers","following_url":"https://api.github.com/users/gtv-p-vanpoucke/following{/other_user}","gists_url":"https://api.github.com/users/gtv-p-vanpoucke/gists{/gist_id}","starred_url":"https://api.github.com/users/gtv-p-vanpoucke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtv-p-vanpoucke/subscriptions","organizations_url":"https://api.github.com/users/gtv-p-vanpoucke/orgs","repos_url":"https://api.github.com/users/gtv-p-vanpoucke/repos","events_url":"https://api.github.com/users/gtv-p-vanpoucke/events{/privacy}","received_events_url":"https://api.github.com/users/gtv-p-vanpoucke/received_events","type":"User","site_admin":false},"repo":{"id":46346034,"name":"wsdl2phpgenerator","full_name":"gtv-p-vanpoucke/wsdl2phpgenerator","owner":{"login":"gtv-p-vanpoucke","id":6287422,"avatar_url":"https://avatars.githubusercontent.com/u/6287422?v=3","gravatar_id":"","url":"https://api.github.com/users/gtv-p-vanpoucke","html_url":"https://github.com/gtv-p-vanpoucke","followers_url":"https://api.github.com/users/gtv-p-vanpoucke/followers","following_url":"https://api.github.com/users/gtv-p-vanpoucke/following{/other_user}","gists_url":"https://api.github.com/users/gtv-p-vanpoucke/gists{/gist_id}","starred_url":"https://api.github.com/users/gtv-p-vanpoucke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtv-p-vanpoucke/subscriptions","organizations_url":"https://api.github.com/users/gtv-p-vanpoucke/orgs","repos_url":"https://api.github.com/users/gtv-p-vanpoucke/repos","events_url":"https://api.github.com/users/gtv-p-vanpoucke/events{/privacy}","received_events_url":"https://api.github.com/users/gtv-p-vanpoucke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gtv-p-vanpoucke/wsdl2phpgenerator","description":"Simple utility and class library for generating php classes from a wsdl file.","fork":true,"url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator","forks_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/forks","keys_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/teams","hooks_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/hooks","issue_events_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/issues/events{/number}","events_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/events","assignees_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/assignees{/user}","branches_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/branches{/branch}","tags_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/tags","blobs_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/git/refs{/sha}","trees_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/statuses/{sha}","languages_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/languages","stargazers_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/stargazers","contributors_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/contributors","subscribers_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/subscribers","subscription_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/subscription","commits_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/commits{/sha}","git_commits_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/git/commits{/sha}","comments_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/comments{/number}","issue_comment_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/issues/comments{/number}","contents_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/contents/{+path}","compare_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/merges","archive_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/downloads","issues_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/issues{/number}","pulls_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/pulls{/number}","milestones_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/milestones{/number}","notifications_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/labels{/name}","releases_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/releases{/id}","deployments_url":"https://api.github.com/repos/gtv-p-vanpoucke/wsdl2phpgenerator/deployments","created_at":"2015-11-17T12:35:53Z","updated_at":"2015-11-17T12:35:54Z","pushed_at":"2015-11-17T16:48:51Z","git_url":"git://github.com/gtv-p-vanpoucke/wsdl2phpgenerator.git","ssh_url":"git@github.com:gtv-p-vanpoucke/wsdl2phpgenerator.git","clone_url":"https://github.com/gtv-p-vanpoucke/wsdl2phpgenerator.git","svn_url":"https://github.com/gtv-p-vanpoucke/wsdl2phpgenerator","homepage":"http://wsdl2phpgenerator.github.io/wsdl2phpgenerator","size":3585,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wsdl2phpgenerator:master","ref":"master","sha":"8abda9eb08c97beb8b4ab363cf46e13eb0fda798","user":{"login":"wsdl2phpgenerator","id":5506864,"avatar_url":"https://avatars.githubusercontent.com/u/5506864?v=3","gravatar_id":"","url":"https://api.github.com/users/wsdl2phpgenerator","html_url":"https://github.com/wsdl2phpgenerator","followers_url":"https://api.github.com/users/wsdl2phpgenerator/followers","following_url":"https://api.github.com/users/wsdl2phpgenerator/following{/other_user}","gists_url":"https://api.github.com/users/wsdl2phpgenerator/gists{/gist_id}","starred_url":"https://api.github.com/users/wsdl2phpgenerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsdl2phpgenerator/subscriptions","organizations_url":"https://api.github.com/users/wsdl2phpgenerator/orgs","repos_url":"https://api.github.com/users/wsdl2phpgenerator/repos","events_url":"https://api.github.com/users/wsdl2phpgenerator/events{/privacy}","received_events_url":"https://api.github.com/users/wsdl2phpgenerator/received_events","type":"Organization","site_admin":false},"repo":{"id":502867,"name":"wsdl2phpgenerator","full_name":"wsdl2phpgenerator/wsdl2phpgenerator","owner":{"login":"wsdl2phpgenerator","id":5506864,"avatar_url":"https://avatars.githubusercontent.com/u/5506864?v=3","gravatar_id":"","url":"https://api.github.com/users/wsdl2phpgenerator","html_url":"https://github.com/wsdl2phpgenerator","followers_url":"https://api.github.com/users/wsdl2phpgenerator/followers","following_url":"https://api.github.com/users/wsdl2phpgenerator/following{/other_user}","gists_url":"https://api.github.com/users/wsdl2phpgenerator/gists{/gist_id}","starred_url":"https://api.github.com/users/wsdl2phpgenerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsdl2phpgenerator/subscriptions","organizations_url":"https://api.github.com/users/wsdl2phpgenerator/orgs","repos_url":"https://api.github.com/users/wsdl2phpgenerator/repos","events_url":"https://api.github.com/users/wsdl2phpgenerator/events{/privacy}","received_events_url":"https://api.github.com/users/wsdl2phpgenerator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wsdl2phpgenerator/wsdl2phpgenerator","description":"Simple utility and class library for generating php classes from a wsdl file.","fork":false,"url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator","forks_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/forks","keys_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/teams","hooks_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/hooks","issue_events_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/issues/events{/number}","events_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/events","assignees_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/assignees{/user}","branches_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/branches{/branch}","tags_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/tags","blobs_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/git/refs{/sha}","trees_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/statuses/{sha}","languages_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/languages","stargazers_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/stargazers","contributors_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/contributors","subscribers_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/subscribers","subscription_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/subscription","commits_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/commits{/sha}","git_commits_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/git/commits{/sha}","comments_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/comments{/number}","issue_comment_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/issues/comments{/number}","contents_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/contents/{+path}","compare_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/merges","archive_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/downloads","issues_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/issues{/number}","pulls_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/pulls{/number}","milestones_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/milestones{/number}","notifications_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/labels{/name}","releases_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/releases{/id}","deployments_url":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/deployments","created_at":"2010-02-04T20:54:41Z","updated_at":"2016-03-15T07:55:06Z","pushed_at":"2016-03-11T15:11:51Z","git_url":"git://github.com/wsdl2phpgenerator/wsdl2phpgenerator.git","ssh_url":"git@github.com:wsdl2phpgenerator/wsdl2phpgenerator.git","clone_url":"https://github.com/wsdl2phpgenerator/wsdl2phpgenerator.git","svn_url":"https://github.com/wsdl2phpgenerator/wsdl2phpgenerator","homepage":"http://wsdl2phpgenerator.github.io/wsdl2phpgenerator","size":4183,"stargazers_count":405,"watchers_count":405,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":127,"mirror_url":null,"open_issues_count":54,"forks":127,"open_issues":54,"watchers":405,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/pulls/272"},"html":{"href":"https://github.com/wsdl2phpgenerator/wsdl2phpgenerator/pull/272"},"issue":{"href":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/issues/272"},"comments":{"href":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/issues/272/comments"},"review_comments":{"href":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/pulls/272/comments"},"review_comment":{"href":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/pulls/272/commits"},"statuses":{"href":"https://api.github.com/repos/wsdl2phpgenerator/wsdl2phpgenerator/statuses/6447674cd313ce0595cd20398e3ea4ffacb365d9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":5,"deletions":2,"changed_files":1}}