1
0
Fork 0

Fix Literal id generation

pull/1/head
Jordi Boggiano 2011-05-22 09:30:59 +02:00
parent 56da52d38f
commit 48774ee6ca
1 changed files with 2 additions and 2 deletions

View File

@ -44,12 +44,12 @@ class Literal
public function getId()
{
return (($this->wanted) ? 1 : -1) * spl_object_hash($this->package);
return ($this->wanted ? '' : '-') . spl_object_hash($this->package);
}
public function __toString()
{
return ($this->isWanted() ? '+' : '-').$this->getPackage();
return ($this->wanted ? '+' : '-') . $this->getPackage();
}
public function inverted()