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

Commit d60db71

Browse files
author
Andreas Creten
committed
Return an array of people instead of just the first person on the People property
1 parent d37541d commit d60db71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Notion/Properties/People.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ class People extends PropertyBase
66
{
77
public function value()
88
{
9-
if (is_array($this->config->people) && isset($this->config->people[0])) {
10-
return $this->config->people[0]->name;
9+
if (is_array($this->config->people)) {
10+
return array_column($this->config->people, 'name');
1111
}
1212

13-
return null;
13+
return [];
1414
}
1515
}

0 commit comments

Comments
 (0)