{"action":"created","issue":{"url":"https://api.github.com/repos/processwire/processwire-issues/issues/408","repository_url":"https://api.github.com/repos/processwire/processwire-issues","labels_url":"https://api.github.com/repos/processwire/processwire-issues/issues/408/labels{/name}","comments_url":"https://api.github.com/repos/processwire/processwire-issues/issues/408/comments","events_url":"https://api.github.com/repos/processwire/processwire-issues/issues/408/events","html_url":"https://github.com/processwire/processwire-issues/issues/408","id":266219851,"number":408,"title":"Seeing PHP errors with PHP 7.2","user":{"login":"gmclelland","id":40570,"avatar_url":"https://avatars1.githubusercontent.com/u/40570?v=4","gravatar_id":"","url":"https://api.github.com/users/gmclelland","html_url":"https://github.com/gmclelland","followers_url":"https://api.github.com/users/gmclelland/followers","following_url":"https://api.github.com/users/gmclelland/following{/other_user}","gists_url":"https://api.github.com/users/gmclelland/gists{/gist_id}","starred_url":"https://api.github.com/users/gmclelland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmclelland/subscriptions","organizations_url":"https://api.github.com/users/gmclelland/orgs","repos_url":"https://api.github.com/users/gmclelland/repos","events_url":"https://api.github.com/users/gmclelland/events{/privacy}","received_events_url":"https://api.github.com/users/gmclelland/received_events","type":"User","site_admin":false},"labels":[{"id":450125503,"url":"https://api.github.com/repos/processwire/processwire-issues/labels/status:%20discussion","name":"status: discussion","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2017-10-17T17:51:07Z","updated_at":"2018-03-14T00:07:06Z","closed_at":null,"author_association":"NONE","body":"### Short description of the issue\r\nIf I navigate to the modules page, I see the following errors:\r\n```php\r\n1x | PHP Warning: count(): Parameter must be an array or an object that implements Countable in .../Inputfield/InputfieldFile/InputfieldFile.module:637\r\n--\r\n1× | PHP Warning: count(): Parameter must be an array or an object that implements Countable in .../Inputfield/InputfieldFile/InputfieldFile.module:229\r\n```\r\n### Expected behavior\r\n\r\nNo errors will be shown.\r\n\r\n### Actual behavior\r\n\r\nErrors are shown.\r\n\r\n### Optional: Suggestion for a possible fix\r\n@adrianbj suggested \"Looks like we need to explicitly do an is_array() check before count() now.\"\r\n\r\n### Steps to reproduce the issue\r\n<!-- Provide an unambiguous set of steps to reproduce the issue. -->\r\n\r\n1. Go to the modules page\r\n2. View error with TracyDebugger shown in the backend\r\n\r\n### Setup/Environment\r\nApache/2.4.28 (Unix) PHP/7.2.0beta3\r\n\r\n* ProcessWire version:\r\n3.0.79\r\n"},"comment":{"url":"https://api.github.com/repos/processwire/processwire-issues/issues/comments/372860997","html_url":"https://github.com/processwire/processwire-issues/issues/408#issuecomment-372860997","issue_url":"https://api.github.com/repos/processwire/processwire-issues/issues/408","id":372860997,"user":{"login":"adrianbj","id":871211,"avatar_url":"https://avatars0.githubusercontent.com/u/871211?v=4","gravatar_id":"","url":"https://api.github.com/users/adrianbj","html_url":"https://github.com/adrianbj","followers_url":"https://api.github.com/users/adrianbj/followers","following_url":"https://api.github.com/users/adrianbj/following{/other_user}","gists_url":"https://api.github.com/users/adrianbj/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianbj/subscriptions","organizations_url":"https://api.github.com/users/adrianbj/orgs","repos_url":"https://api.github.com/users/adrianbj/repos","events_url":"https://api.github.com/users/adrianbj/events{/privacy}","received_events_url":"https://api.github.com/users/adrianbj/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T00:07:06Z","updated_at":"2018-03-14T00:07:06Z","author_association":"NONE","body":".../Fieldtype/FieldtypeOptions/FieldtypeOptions.module:106\r\n\r\nNote this is not the same as the one on line 109 noted above!"}}
{"actor":{"display_login":"adrianbj"}}