Skip to content

Commit 85ffedc

Browse files
authored
Suppress PHP8.1 deprecation notice to keep up PHP7 support
1 parent 92dace2 commit 85ffedc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/SerializableTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ trait SerializableTrait
2525
*
2626
* @return string|false
2727
*/
28-
#[\ReturnTypeWillChange]
2928
public function toJSON(array $except = [], int $options = 0, int $depth = 512)
3029
{
3130
if ($depth < 1) {
@@ -38,6 +37,7 @@ public function toJSON(array $except = [], int $options = 0, int $depth = 512)
3837
/**
3938
* Return a JSON serializable representation of the current state
4039
*/
40+
#[\ReturnTypeWillChange]
4141
public function jsonSerialize()
4242
{
4343
return $this->toArray();

0 commit comments

Comments
 (0)