Skip to content

Commit 11e9ac7

Browse files
author
PooyaRaki
committed
fix: fixed deprecated errors related to return types
1 parent cb0f436 commit 11e9ac7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Spec/v3/AbstractObject.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ final public function __set($name, $value)
5656
*
5757
* @return bool
5858
*/
59-
final public function offsetExists($offset)
59+
final public function offsetExists($offset): bool
6060
{
6161
return isset($this->$offset);
6262
}
@@ -66,7 +66,7 @@ final public function offsetExists($offset)
6666
*
6767
* @return mixed
6868
*/
69-
final public function offsetGet($offset)
69+
final public function offsetGet($offset): mixed
7070
{
7171
return $this->$offset;
7272
}
@@ -75,15 +75,15 @@ final public function offsetGet($offset)
7575
* @param string $offset
7676
* @param mixed $value
7777
*/
78-
final public function offsetSet($offset, $value)
78+
final public function offsetSet($offset, $value): void
7979
{
8080
$this->$offset = $value;
8181
}
8282

8383
/**
8484
* @param string $offset
8585
*/
86-
final public function offsetUnset($offset)
86+
final public function offsetUnset($offset): void
8787
{
8888
unset($this->$offset);
8989
}
@@ -203,7 +203,7 @@ public function toYaml(
203203
*
204204
* @return array|stdClass
205205
*/
206-
public function jsonSerialize()
206+
public function jsonSerialize(): mixed
207207
{
208208
$properties = $this->toArray();
209209
return empty($properties) ? new stdClass() : $properties;

0 commit comments

Comments
 (0)