Skip to content

Commit 2e590f6

Browse files
committed
fix a warning
1 parent 71cbff2 commit 2e590f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/AnyTime.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ private function __construct(private readonly float|int $value, protected readon
1515
public function __destruct()
1616
{
1717
$key = (string) $this->value;
18-
unset(self::$maps[$this->spacetime][$key]);
18+
$map = &self::$maps[$this->spacetime];
19+
unset($map[$key]);
1920
}
2021

2122
public function getValue(): int|float

0 commit comments

Comments
 (0)