{"action":"created","issue":{"url":"https://api.github.com/repos/erusev/parsedown/issues/279","labels_url":"https://api.github.com/repos/erusev/parsedown/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/erusev/parsedown/issues/279/comments","events_url":"https://api.github.com/repos/erusev/parsedown/issues/279/events","html_url":"https://github.com/erusev/parsedown/issues/279","id":56184172,"number":279,"title":"Parsedown is currently not compatible with PHP 7","user":{"login":"kelunik","id":2743004,"avatar_url":"https://avatars.githubusercontent.com/u/2743004?v=3","gravatar_id":"","url":"https://api.github.com/users/kelunik","html_url":"https://github.com/kelunik","followers_url":"https://api.github.com/users/kelunik/followers","following_url":"https://api.github.com/users/kelunik/following{/other_user}","gists_url":"https://api.github.com/users/kelunik/gists{/gist_id}","starred_url":"https://api.github.com/users/kelunik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelunik/subscriptions","organizations_url":"https://api.github.com/users/kelunik/orgs","repos_url":"https://api.github.com/users/kelunik/repos","events_url":"https://api.github.com/users/kelunik/events{/privacy}","received_events_url":"https://api.github.com/users/kelunik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/erusev/parsedown/labels/suggestion","name":"suggestion","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-01T23:51:11Z","updated_at":"2015-02-02T00:26:04Z","closed_at":null,"body":"PHP 7 doesn't allow this any longer: http://3v4l.org/62FEh\r\n```php\r\n<?php\r\n\r\nclass Foo {\r\n    private $a = \"php7\";\r\n    \r\n    function bar(array $data) {\r\n        return $this->$data['prop'];\r\n    }\r\n}\r\n\r\n$foo = new Foo;\r\n\r\nvar_dump($foo->bar(['prop' => 'a']));\r\n```\r\n\r\nAll code using something like this has to be changed to:\r\n```php\r\n<?php\r\n\r\nclass Foo {\r\n    private $a = \"php7\";\r\n    \r\n    function bar(array $data) {\r\n        return $this->{$data['prop']};\r\n    }\r\n}\r\n\r\n$foo = new Foo;\r\n\r\nvar_dump($foo->bar(['prop' => 'a']));\r\n```\r\n\r\ne.g. here: https://github.com/erusev/parsedown/blob/master/Parsedown.php#L1405"},"comment":{"url":"https://api.github.com/repos/erusev/parsedown/issues/comments/72393406","html_url":"https://github.com/erusev/parsedown/issues/279#issuecomment-72393406","issue_url":"https://api.github.com/repos/erusev/parsedown/issues/279","id":72393406,"user":{"login":"kelunik","id":2743004,"avatar_url":"https://avatars.githubusercontent.com/u/2743004?v=3","gravatar_id":"","url":"https://api.github.com/users/kelunik","html_url":"https://github.com/kelunik","followers_url":"https://api.github.com/users/kelunik/followers","following_url":"https://api.github.com/users/kelunik/following{/other_user}","gists_url":"https://api.github.com/users/kelunik/gists{/gist_id}","starred_url":"https://api.github.com/users/kelunik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelunik/subscriptions","organizations_url":"https://api.github.com/users/kelunik/orgs","repos_url":"https://api.github.com/users/kelunik/repos","events_url":"https://api.github.com/users/kelunik/events{/privacy}","received_events_url":"https://api.github.com/users/kelunik/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T00:26:04Z","updated_at":"2015-02-02T00:26:04Z","body":"That seems to be the only issue. Runs now successfully."}}