Skip to content

Commit e92c8ad

Browse files
authored
Fix jsonSerialize for return type compability (#23)
Co-authored-by: Markus Gerards <[email protected]>
1 parent 8730a22 commit e92c8ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Record.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function getId()
219219
*
220220
* @return array
221221
*/
222-
public function jsonSerialize()
222+
public function jsonSerialize(): array|string
223223
{
224224
$o = [];
225225
foreach ($this->properties as $prop) {

0 commit comments

Comments
 (0)