Skip to content

Commit 1bc2e21

Browse files
authored
Suppress deprecated notices in PHP 8.1 (#111)
1 parent fcecfd3 commit 1bc2e21

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/CompoundDocument.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function __construct(PrimaryData $data, Included $included, DataDocumentM
1919
$this->doc = combine($data, $included, ...$members);
2020
}
2121

22+
#[\ReturnTypeWillChange]
2223
public function jsonSerialize()
2324
{
2425
return $this->doc;

src/DataDocument.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function __construct(PrimaryData $data, DataDocumentMember ...$members)
1818
$this->value = combine($data, ...$members);
1919
}
2020

21+
#[\ReturnTypeWillChange]
2122
public function jsonSerialize()
2223
{
2324
return $this->value;

src/ErrorDocument.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function __construct(ErrorDocumentMember ...$members)
2020
}
2121
}
2222

23+
#[\ReturnTypeWillChange]
2324
public function jsonSerialize()
2425
{
2526
return $this->obj;

src/MetaDocument.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public function __construct(Meta $meta, MetaDocumentMember ...$members)
1313
$this->doc = combine($meta, ...$members);
1414
}
1515

16+
#[\ReturnTypeWillChange]
1617
public function jsonSerialize()
1718
{
1819
return $this->doc;

0 commit comments

Comments
 (0)