{"action":"opened","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5135","repository_url":"https://api.github.com/repos/HaxeFoundation/haxe","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5135/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5135/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/5135/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/5135","id":149089697,"number":5135,"title":"[PHP] Uncontrolled Cast","user":{"login":"TheoSabattie","id":2721436,"avatar_url":"https://avatars.githubusercontent.com/u/2721436?v=3","gravatar_id":"","url":"https://api.github.com/users/TheoSabattie","html_url":"https://github.com/TheoSabattie","followers_url":"https://api.github.com/users/TheoSabattie/followers","following_url":"https://api.github.com/users/TheoSabattie/following{/other_user}","gists_url":"https://api.github.com/users/TheoSabattie/gists{/gist_id}","starred_url":"https://api.github.com/users/TheoSabattie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheoSabattie/subscriptions","organizations_url":"https://api.github.com/users/TheoSabattie/orgs","repos_url":"https://api.github.com/users/TheoSabattie/repos","events_url":"https://api.github.com/users/TheoSabattie/events{/privacy}","received_events_url":"https://api.github.com/users/TheoSabattie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-18T09:03:46Z","updated_at":"2016-04-18T09:03:46Z","closed_at":null,"body":"Hi,\r\n\r\n`var lObj:Object1 = new Object1();\r\nvar lObj2:Object2 = cast(lObj, Object2);`\r\n\r\nObject2 does not extend Object1 but I don't have any errors. \r\nSo I can undestand error only when I use a method of Object2 which does not exist on Object1.\r\n\r\nCan you manage cast, check inheritance and show errors if necessary?\r\n\r\nThanks,\r\n\r\nThéo S.\r\n"}}