{"action":"closed","issue":{"url":"https://api.github.com/repos/josegonzalez/cakephp-upload/issues/329","labels_url":"https://api.github.com/repos/josegonzalez/cakephp-upload/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/josegonzalez/cakephp-upload/issues/329/comments","events_url":"https://api.github.com/repos/josegonzalez/cakephp-upload/issues/329/events","html_url":"https://github.com/josegonzalez/cakephp-upload/issues/329","id":106232945,"number":329,"title":"3.x - Uploadbehavior::beforeSave() incorrectly checks return value of WriterInterface::write()","user":{"login":"ADmad","id":142658,"avatar_url":"https://avatars.githubusercontent.com/u/142658?v=3","gravatar_id":"","url":"https://api.github.com/users/ADmad","html_url":"https://github.com/ADmad","followers_url":"https://api.github.com/users/ADmad/followers","following_url":"https://api.github.com/users/ADmad/following{/other_user}","gists_url":"https://api.github.com/users/ADmad/gists{/gist_id}","starred_url":"https://api.github.com/users/ADmad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ADmad/subscriptions","organizations_url":"https://api.github.com/users/ADmad/orgs","repos_url":"https://api.github.com/users/ADmad/repos","events_url":"https://api.github.com/users/ADmad/events{/privacy}","received_events_url":"https://api.github.com/users/ADmad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-13T18:38:00Z","updated_at":"2015-11-26T23:50:19Z","closed_at":"2015-11-26T23:50:19Z","body":"WriterInterface::write() returns an array and in case of failure the return value would be like `[false]`. The behavior incorrectly checks that return value as `if (!$success)` instead of checking the non of the array values are false."}}