Skip to content

Commit

Permalink
no deprecations (support php 8.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
matkomat committed Sep 18, 2022
1 parent 8d3eb20 commit 6c9bb26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generate.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ private function processDynamicObjectType(string $domain, $typeSpec)
$fromJson->addComment("@param object \$rawData");

$jsonSerialize = $objectClass->addMethod("jsonSerialize");
$jsonSerialize->addAttribute("ReturnTypeWillChange");
$jsonSerialize->addBody("return \$this->rawData;");

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

$jsonSerialize = $objectClass->addMethod("jsonSerialize");
$jsonSerialize->addAttribute("ReturnTypeWillChange");
$jsonSerialize->addBody("\$data = new \\stdClass();");

$builderClass = null;
Expand Down

0 comments on commit 6c9bb26

Please sign in to comment.