From 765a3f38f6f7380ad275090148823b92d3cc0df7 Mon Sep 17 00:00:00 2001 From: Amburi Roy Date: Wed, 9 Aug 2023 14:58:29 +0200 Subject: [PATCH] fix: resolve deprecation issues in rosetta build --- src/Spec/v3/AbstractObject.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Spec/v3/AbstractObject.php b/src/Spec/v3/AbstractObject.php index 53f0cb3..5719f1a 100644 --- a/src/Spec/v3/AbstractObject.php +++ b/src/Spec/v3/AbstractObject.php @@ -53,7 +53,6 @@ final public function __set($name, $value) /** * @param mixed $offset - * * @return bool */ final public function offsetExists(mixed $offset): bool @@ -63,7 +62,6 @@ final public function offsetExists(mixed $offset): bool /** * @param mixed $offset - * * @return mixed */ final public function offsetGet(mixed $offset): mixed @@ -73,7 +71,8 @@ final public function offsetGet(mixed $offset): mixed /** * @param mixed $offset - * @param mixed $value + * @param mixed $value + * @return void */ final public function offsetSet(mixed $offset, mixed $value): void { @@ -82,6 +81,7 @@ final public function offsetSet(mixed $offset, mixed $value): void /** * @param mixed $offset + * @return void */ final public function offsetUnset(mixed $offset): void { @@ -201,7 +201,7 @@ public function toYaml( * in order to be able to export empty objects correctly, so they * won't be treated as empty arrays. * - * @return array|stdClass + * @return mixed */ public function jsonSerialize(): mixed {