Skip to content

Commit 91f30f5

Browse files
committed
correctly overload jsonSerialize
1 parent 3db9c97 commit 91f30f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Types/Map.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public function get(string $key, $default = null)
348348
return $this->offsetGet($key);
349349
}
350350

351-
public function jsonSerialize()
351+
public function jsonSerialize(): mixed
352352
{
353353
if ($this->isEmpty()) {
354354
return new stdClass();

0 commit comments

Comments
 (0)