FCM 요청 스키마 수정 및 배열 선언 가독성 개선

This commit is contained in:
Kijin Sung 2020-06-21 16:46:07 +09:00
parent df76fa45c5
commit f9521d4d93
2 changed files with 15 additions and 6 deletions

View file

@ -125,9 +125,9 @@ class Push
*
* @return int|null
*/
public function getFrom(): ?int
public function getFrom(): int
{
return $this->from;
return intval($this->from);
}
/**
@ -339,7 +339,7 @@ class Push
foreach($output->data as $row)
{
$result[$row->device_type] = $row->device_token;
$result[$row->device_type][] = $row->device_token;
}
return $result;