Skip to content

Commit c111bd0

Browse files
fixes #48
1 parent a7616cf commit c111bd0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Examples/example-1-your-first-request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@
9696
*
9797
*/
9898

99-
echo $whoAmI->firstname . ' ' . $whoAmI->lastname;
99+
echo $whoAmI->firstname . ' ' . $whoAmI->lastname;

src/PrintNode/Entity.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ public function mapValuesFromJson($json)
102102
*
103103
* @return string
104104
*/
105-
public function jsonSerialize(): mixed
105+
#[\ReturnTypeWillChange]
106+
public function jsonSerialize()
106107
{
107-
108108
$json = array();
109109

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

133133
}
134134

135-
}
135+
}

src/PrintNode/EntityDynamic.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public function mapValuesFromJson($json)
5252
*
5353
* @return string
5454
*/
55-
public function jsonSerialize(): mixed
55+
#[\ReturnTypeWillChange]
56+
public function jsonSerialize()
5657
{
5758

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

7677
}
7778

78-
}
79+
}

0 commit comments

Comments
 (0)