Skip to content

Commit 24f5f30

Browse files
committed
Add return types to JsonSerializable implementations
1 parent 2a5902c commit 24f5f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Fixtures/JsonSerializableDummy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class JsonSerializableDummy implements \JsonSerializable
1515
{
16-
public function jsonSerialize()
16+
public function jsonSerialize(): array
1717
{
1818
return [
1919
'foo' => 'a',

0 commit comments

Comments
 (0)