Skip to content

Commit

Permalink
Fix: Namespaces de objetos nativos do PHP em Ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysXavier committed Dec 20, 2016
1 parent 6350938 commit 7410ad4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Ticket {
private $autenticacao;

public function __construct() {
$this->data = new DateTime();
$this->data = new \DateTime();
$this->ambiente = Config::getInstance()->getGeral("ambiente");
$this->estacao = Config::getInstance()->getGeral("estacao");
}
Expand Down Expand Up @@ -68,7 +68,7 @@ public function setNsu($nsu) {
public function setData(\DateTime $data) {
try {
$this->data = Util::converterParaDateTime($data);
} catch (Exception $e) {
} catch (\Exception $e) {
throw $e;
}
}
Expand All @@ -89,7 +89,7 @@ public function setAutenticacao($autenticacao) {
* @return string
*/
public function exportarParaXml($nomeNoRaiz = NULL) {
$xml = new XMLWriter();
$xml = new \XMLWriter();
$xml->openMemory();

if (!is_null($nomeNoRaiz)) {
Expand Down

0 comments on commit 7410ad4

Please sign in to comment.