Skip to content

Commit 36e7efa

Browse files
committed
Add property type and default value in Tag::$parent
1 parent 98b7fcc commit 36e7efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entity/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Tag
4242
* @ORM\ManyToOne(targetEntity="App\Entity\Tag", cascade={"persist"})
4343
* @ORM\JoinColumn(name="parent_id", referencedColumnName="id", nullable=true)
4444
*/
45-
private $parent;
45+
private ?Tag $parent = null;
4646

4747
public function __toString(): string
4848
{

0 commit comments

Comments
 (0)