{"id":10485653,"date":"2018-07-11T23:22:21","date_gmt":"2018-07-11T23:22:21","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/nested-function-causing-phpunit-errors\/"},"modified":"2018-07-11T23:22:21","modified_gmt":"2018-07-11T23:22:21","slug":"nested-function-causing-phpunit-errors","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/nested-function-causing-phpunit-errors\/","title":{"rendered":"Nested Function causing PHPUnit errors"},"content":{"rendered":"<p>PHP Fatal error:  Cannot redeclare display_chartbeat_accountid_error() (previously declared in \/wp-content\/plugins\/chartbeat\/chartbeat.php:39) in \/wp-content\/plugins\/chartbeat\/chartbeat.php on line 38<\/p>\n<p>error is thrown due to nested function.<br \/>\ndisplay_chartbeat_accountid_error()<br \/>\nis nested inside of<br \/>\ncheck_chartbeat_accountid_error()<br \/>\nin chartbeat.php<\/p>\n<p>I assume this is done in error. Is this plugin still being supported? Last update was a year ago. <\/p>\n","protected":false},"template":"","class_list":["post-10485653","topic","type-topic","status-publish","hentry","topic-tag-phpunit"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10485653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10485653\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10485653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}