Skip to content

Commit

Permalink
Add property type and default value in Tag::$parent
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierstoval committed Jan 15, 2020
1 parent 98b7fcc commit 36e7efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Tag
* @ORM\ManyToOne(targetEntity="App\Entity\Tag", cascade={"persist"})
* @ORM\JoinColumn(name="parent_id", referencedColumnName="id", nullable=true)
*/
private $parent;
private ?Tag $parent = null;

public function __toString(): string
{
Expand Down

0 comments on commit 36e7efa

Please sign in to comment.