Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
StaticPage: Compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek committed Feb 11, 2021
1 parent c704890 commit 31af228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Entity/StaticPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class StaticPage
* @var self[]|Collection
* @ORM\OneToMany(targetEntity="StaticPage", mappedBy="parent")
*/
private array|Collection $children;
private $children;


public function __construct(string $title, string $content = '', ?string $slug = null, ?self $parent = null)
Expand Down Expand Up @@ -132,7 +132,7 @@ public function setActive(bool $active): void
/**
* @return StaticPage[]|Collection
*/
public function getChildren(): array|Collection
public function getChildren()
{
return $this->children;
}
Expand Down

0 comments on commit 31af228

Please sign in to comment.