Skip to content

Commit

Permalink
Refactor "getId" to "__toString()" for logStreamId
Browse files Browse the repository at this point in the history
  • Loading branch information
Echron committed Mar 27, 2022
1 parent 84f697d commit 7e7fcb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Model/Log/LogEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getDate(): \DateTimeInterface
public function jsonSerialize(): array
{
return [
'logStream' => ['id' => $this->logStreamId->getId()],
'logStream' => ['id' => $this->logStreamId->__toString()],
'date' => $this->date->format(\DateTime::RFC3339_EXTENDED),
'level' => $this->level,
'message' => $this->message,
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Log/LogStreamId.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(string $id)
$this->id = $id;
}

public function getId(): string
public function __toString(): string
{
return $this->id;
}
Expand Down

0 comments on commit 7e7fcb6

Please sign in to comment.