We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c512f19 commit fbc76bbCopy full SHA for fbc76bb
src/Entity/Tag.php
@@ -29,10 +29,12 @@ class Tag implements \JsonSerializable
29
#[ORM\Column(type: 'integer')]
30
private ?int $id = null;
31
32
- public function __construct(
33
- #[ORM\Column(type: 'string', unique: true)]
34
- private readonly string $name,
35
- ) {
+ #[ORM\Column(type: 'string', unique: true)]
+ private readonly string $name;
+
+ public function __construct(string $name)
36
+ {
37
+ $this->name = $name;
38
}
39
40
public function getId(): ?int
0 commit comments