Skip to content

Commit c0e915a

Browse files
committed
Add ReturnTypeWillChange annotation
1 parent 5652e58 commit c0e915a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/Map.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,7 @@ public function offsetExists($offset)
798798
*
799799
* @see \JsonSerializable
800800
*/
801+
#[\ReturnTypeWillChange]
801802
public function jsonSerialize()
802803
{
803804
return (object) $this->toArray();

src/Pair.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public function toArray(): array
142142
*
143143
* @psalm-return array{key: TKey, value: TValue}
144144
*/
145+
#[\ReturnTypeWillChange]
145146
public function jsonSerialize()
146147
{
147148
return $this->toArray();

src/Traits/GenericCollection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function isEmpty(): bool
2727
*
2828
* @see \JsonSerializable
2929
*/
30+
#[\ReturnTypeWillChange]
3031
public function jsonSerialize()
3132
{
3233
return $this->toArray();

0 commit comments

Comments
 (0)