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

Commit 31af228

Browse files
committed
StaticPage: Compatibility
1 parent c704890 commit 31af228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Entity/StaticPage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class StaticPage
5252
* @var self[]|Collection
5353
* @ORM\OneToMany(targetEntity="StaticPage", mappedBy="parent")
5454
*/
55-
private array|Collection $children;
55+
private $children;
5656

5757

5858
public function __construct(string $title, string $content = '', ?string $slug = null, ?self $parent = null)
@@ -132,7 +132,7 @@ public function setActive(bool $active): void
132132
/**
133133
* @return StaticPage[]|Collection
134134
*/
135-
public function getChildren(): array|Collection
135+
public function getChildren()
136136
{
137137
return $this->children;
138138
}

0 commit comments

Comments
 (0)