{"action":"closed","issue":{"url":"https://api.github.com/repos/dektrium/yii2-user/issues/608","repository_url":"https://api.github.com/repos/dektrium/yii2-user","labels_url":"https://api.github.com/repos/dektrium/yii2-user/issues/608/labels{/name}","comments_url":"https://api.github.com/repos/dektrium/yii2-user/issues/608/comments","events_url":"https://api.github.com/repos/dektrium/yii2-user/issues/608/events","html_url":"https://github.com/dektrium/yii2-user/issues/608","id":132210408,"number":608,"title":"User::afterSave() method returns nothing - bad for overriding!","user":{"login":"Ziggizag","id":2280036,"avatar_url":"https://avatars.githubusercontent.com/u/2280036?v=3","gravatar_id":"","url":"https://api.github.com/users/Ziggizag","html_url":"https://github.com/Ziggizag","followers_url":"https://api.github.com/users/Ziggizag/followers","following_url":"https://api.github.com/users/Ziggizag/following{/other_user}","gists_url":"https://api.github.com/users/Ziggizag/gists{/gist_id}","starred_url":"https://api.github.com/users/Ziggizag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ziggizag/subscriptions","organizations_url":"https://api.github.com/users/Ziggizag/orgs","repos_url":"https://api.github.com/users/Ziggizag/repos","events_url":"https://api.github.com/users/Ziggizag/events{/privacy}","received_events_url":"https://api.github.com/users/Ziggizag/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-08T17:40:04Z","updated_at":"2016-03-22T13:46:32Z","closed_at":"2016-03-22T13:46:32Z","body":"Model events should follow general signature for proper overriding:\r\n\r\npublic function beforeEvent($param1, $param2)\r\n{\r\n    if (parent::beforeEvent($param1, $param2)) {\r\n        // ...custom code here...\r\n        return true;\r\n    } else {\r\n        return false;\r\n    }\r\n}\r\n\r\nReturning no value (boolean) makes it hard for overriding following this signature!"}}