Skip to content

Commit 4fdf943

Browse files
committed
Scope channel and locale can be null for new entities
1 parent f885830 commit 4fdf943

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Entity/Scope.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ public function getOptionTitle(): string
4848
}
4949

5050
/**
51-
* @return Channel
51+
* @return Channel|null
5252
*/
53-
public function getChannel(): Channel
53+
public function getChannel(): ?Channel
5454
{
5555
return $this->channel;
5656
}
@@ -68,9 +68,9 @@ public function setChannel(Channel $channel): self
6868
}
6969

7070
/**
71-
* @return Locale
71+
* @return Locale|null
7272
*/
73-
public function getLocale(): Locale
73+
public function getLocale(): ?Locale
7474
{
7575
return $this->locale;
7676
}

0 commit comments

Comments
 (0)