Skip to content

Commit bde2564

Browse files
committed
fixed typing error
1 parent 6f78e9a commit bde2564

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Formatter/Specialised/BoltOGMTranslator.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ private function makeFromBoltLocalDateTime(BoltLocalDateTime $time): LocalDateTi
127127

128128
private function makeBoltTimezoneIdentifier(BoltDateTimeZoneId $time): DateTimeZoneId
129129
{
130-
return new DateTimeZoneId($time->seconds(), $time->nanoseconds(), $time->tz_id());
130+
/** @var non-empty-string $tzId */
131+
$tzId = $time->tz_id();
132+
133+
return new DateTimeZoneId($time->seconds(), $time->nanoseconds(), $tzId);
131134
}
132135

133136
private function makeFromBoltDuration(BoltDuration $duration): Duration

src/Types/DateTimeZoneId.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
*/
3535
final class DateTimeZoneId extends AbstractPropertyObject implements BoltConvertibleInterface
3636
{
37+
/**
38+
* @param non-empty-string $tzId
39+
*/
3740
public function __construct(
3841
private int $seconds,
3942
private int $nanoseconds,

0 commit comments

Comments
 (0)