Skip to content

Commit 12b5581

Browse files
committed
- fix: jsonSerialize() return type
1 parent 557871c commit 12b5581

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

JsonSerializeTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ trait JsonSerializeTrait
1919
*
2020
* @return array Request object properties (not a JSON serialized request object)
2121
*/
22-
public function jsonSerialize(): array
22+
public function jsonSerialize(): mixed
2323
{
2424
return \get_object_vars($this);
2525
}

Uri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ private function isStandardPort(): bool
219219
return \in_array($this->port, static::STANDARD_PORTS);
220220
}
221221

222-
public function jsonSerialize()
222+
public function jsonSerialize(): mixed
223223
{
224224
return \array_filter([
225225
'scheme' => $this->getScheme(),

0 commit comments

Comments
 (0)