Skip to content

Commit

Permalink
fixes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjwbyrne committed Sep 19, 2023
1 parent a7616cf commit c111bd0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Examples/example-1-your-first-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@
*
*/

echo $whoAmI->firstname . ' ' . $whoAmI->lastname;
echo $whoAmI->firstname . ' ' . $whoAmI->lastname;
6 changes: 3 additions & 3 deletions src/PrintNode/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ public function mapValuesFromJson($json)
*
* @return string
*/
public function jsonSerialize(): mixed
#[\ReturnTypeWillChange]
public function jsonSerialize()
{

$json = array();

foreach (static::$responseMap as $responseKey => $responseMapType) {
Expand Down Expand Up @@ -132,4 +132,4 @@ public function __toString() {

}

}
}
5 changes: 3 additions & 2 deletions src/PrintNode/EntityDynamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public function mapValuesFromJson($json)
*
* @return string
*/
public function jsonSerialize(): mixed
#[\ReturnTypeWillChange]
public function jsonSerialize()
{

$refClass = new \ReflectionClass($this);
Expand All @@ -75,4 +76,4 @@ public function jsonSerialize(): mixed

}

}
}

0 comments on commit c111bd0

Please sign in to comment.