Skip to content

Commit c4c0ef9

Browse files
committed
no deprecations (support php 8.1)
1 parent 8d3eb20 commit c4c0ef9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

generate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ private function processDynamicObjectType(string $domain, $typeSpec)
446446
$fromJson->addComment("@param object \$rawData");
447447

448448
$jsonSerialize = $objectClass->addMethod("jsonSerialize");
449+
$jsonSerialize->addAttribute('ReturnTypeWillChange');
449450
$jsonSerialize->addBody("return \$this->rawData;");
450451

451452
$objectClass->addMethod("getRawData")
@@ -521,6 +522,7 @@ private function processObjectType(string $domain, $typeSpec, bool $withBuilder
521522
$fromJson->addComment("@return static");
522523

523524
$jsonSerialize = $objectClass->addMethod("jsonSerialize");
525+
$jsonSerialize->addAttribute('ReturnTypeWillChange');
524526
$jsonSerialize->addBody("\$data = new \\stdClass();");
525527

526528
$builderClass = null;

0 commit comments

Comments
 (0)