fix compatibility with interface

See https://github.com/Bee-Lab/BeelabTagBundle/issues/11
This commit is contained in:
Massimiliano Arione
2018-09-23 09:09:13 +02:00
parent 183554cef8
commit 1d79bfacb2
+2 -2
View File
@@ -37,12 +37,12 @@ class Tag implements TagInterface
return $this->id;
}
public function setName($name)
public function setName(?string $name): void
{
$this->name = $name;
}
public function getName()
public function getName(): ?string
{
return $this->name;
}