{"action":"opened","issue":{"url":"https://api.github.com/repos/stavarengo/php-sigep/issues/9","labels_url":"https://api.github.com/repos/stavarengo/php-sigep/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/stavarengo/php-sigep/issues/9/comments","events_url":"https://api.github.com/repos/stavarengo/php-sigep/issues/9/events","html_url":"https://github.com/stavarengo/php-sigep/issues/9","id":53871864,"number":9,"title":"BUG: Fatal error SERVICE_VALOR_DECLARADO()","user":{"login":"Fertusco","id":9468100,"avatar_url":"https://avatars.githubusercontent.com/u/9468100?v=3","gravatar_id":"","url":"https://api.github.com/users/Fertusco","html_url":"https://github.com/Fertusco","followers_url":"https://api.github.com/users/Fertusco/followers","following_url":"https://api.github.com/users/Fertusco/following{/other_user}","gists_url":"https://api.github.com/users/Fertusco/gists{/gist_id}","starred_url":"https://api.github.com/users/Fertusco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fertusco/subscriptions","organizations_url":"https://api.github.com/users/Fertusco/orgs","repos_url":"https://api.github.com/users/Fertusco/repos","events_url":"https://api.github.com/users/Fertusco/events{/privacy}","received_events_url":"https://api.github.com/users/Fertusco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-09T14:18:37Z","updated_at":"2015-01-09T14:18:37Z","closed_at":null,"body":"Prezados estou relatando um BUG e forma de corrigí-lo.\r\n\r\nQuando solicitamos o método fechaPlpVariosServicos() com o serviço adicional Valor Declaro dentro do objeto, está retornando o seguinte erro:\r\n\r\nFatal error: Call to undefined method PhpSigep\\Model\\ServicoAdicional::SERVICE_VALOR_DECLARADO() in /Applications/XAMPP/xamppfiles/htdocs/sigep/src/PhpSigep/Services/Real/FecharPreListaDePostagem.php on line 267\r\n\r\nNo arquivo FecharPreListaDePostagem.php linha 267 o código está assim:\r\n```\r\n                if ($servicoAdicional->getCodigoServicoAdicional() == ServicoAdicional::SERVICE_VALOR_DECLARADO()) {\r\n```\r\n\r\nDeve ser alterado para:\r\n```\r\n                if ($servicoAdicional->getCodigoServicoAdicional() == ServicoAdicional::SERVICE_VALOR_DECLARADO) {\r\n```\r\n\r\nAbraços."}}