Skip to content

Commit 693e45d

Browse files
authored
Merge pull request #8 from newmatter/1.1.3-php8-fix
Fix return type to prevent deprecation warnings in PHP 8+
2 parents 7cefcdd + c6023bd commit 693e45d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/Model/ComplyCubeCollection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function load(stdClass $response): void
4949
$this->rewind();
5050
}
5151

52-
public function jsonSerialize()
52+
public function jsonSerialize(): mixed
5353
{
5454
return array_filter(
5555
parent::jsonSerialize(),
@@ -63,12 +63,12 @@ public function rewind(): void
6363
$this->position = 0;
6464
}
6565

66-
public function current()
66+
public function current(): mixed
6767
{
6868
return $this->items[$this->position];
6969
}
7070

71-
public function key()
71+
public function key(): mixed
7272
{
7373
return $this->position;
7474
}

lib/Model/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function load(stdClass $response): void
6969
}
7070
}
7171

72-
public function jsonSerialize()
72+
public function jsonSerialize(): mixed
7373
{
7474
return array_filter(
7575
array_map(function ($value) {

0 commit comments

Comments
 (0)