Add missing return type
This commit is contained in:
parent
5f79f6b497
commit
b874c01ea2
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class Event
|
|||
|
||||
private string $link;
|
||||
|
||||
public static function createFromArray(array $data)
|
||||
public static function createFromArray(array $data): self
|
||||
{
|
||||
return new static($data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue