Skip to content

Commit 3908b4e

Browse files
Pavel AlexeevPavel Alexeev
Pavel Alexeev
authored and
Pavel Alexeev
committed
php-kafka#33 Fix all auto-tests: Fix deprecation warning for the PhpClassPropertyTypeItem::jsonSerialize in tests
1 parent 377ddf5 commit 3908b4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PhpClass/PhpClassPropertyType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function isNullable(): bool
3434
* Allow easy serialization into JSON
3535
* @return array|mixed|PhpClassPropertyTypeItemInterface|PhpClassPropertyTypeItemInterface[]
3636
*/
37-
public function jsonSerialize()
37+
public function jsonSerialize(): mixed
3838
{
3939
if (0 == count($this->types)){
4040
return [];

src/PhpClass/PhpClassPropertyTypeItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function getItemType(): string
2323
return $this->itemType;
2424
}
2525

26-
public function jsonSerialize()
26+
public function jsonSerialize(): mixed
2727
{
2828
if ($this->isArray()){
2929
return [

0 commit comments

Comments
 (0)