Skip to content

Commit

Permalink
fixed typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
transistive committed Dec 4, 2023
1 parent 6f78e9a commit bde2564
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Formatter/Specialised/BoltOGMTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ private function makeFromBoltLocalDateTime(BoltLocalDateTime $time): LocalDateTi

private function makeBoltTimezoneIdentifier(BoltDateTimeZoneId $time): DateTimeZoneId
{
return new DateTimeZoneId($time->seconds(), $time->nanoseconds(), $time->tz_id());
/** @var non-empty-string $tzId */
$tzId = $time->tz_id();

return new DateTimeZoneId($time->seconds(), $time->nanoseconds(), $tzId);
}

private function makeFromBoltDuration(BoltDuration $duration): Duration
Expand Down
3 changes: 3 additions & 0 deletions src/Types/DateTimeZoneId.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
*/
final class DateTimeZoneId extends AbstractPropertyObject implements BoltConvertibleInterface
{
/**
* @param non-empty-string $tzId
*/
public function __construct(
private int $seconds,
private int $nanoseconds,
Expand Down

0 comments on commit bde2564

Please sign in to comment.