fixed php 8.1 type bugs

This commit is contained in:
Dennis Eichhorn 2022-03-22 17:34:58 +01:00
parent 97ad384589
commit b1faa50caa
14 changed files with 14 additions and 14 deletions

View File

@ -424,7 +424,7 @@ class Account implements \JsonSerializable, ArrayableInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return $this->toArray(); return $this->toArray();
} }

View File

@ -158,7 +158,7 @@ class Group implements \JsonSerializable, ArrayableInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return $this->toArray(); return $this->toArray();
} }

View File

@ -520,7 +520,7 @@ class PermissionAbstract implements \JsonSerializable
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return [ return [
'id' => $this->id, 'id' => $this->id,

View File

@ -790,7 +790,7 @@ class Localization implements \JsonSerializable
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return $this->toArray(); return $this->toArray();
} }

View File

@ -77,7 +77,7 @@ abstract class ResponseAbstract implements \JsonSerializable, MessageInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return $this->toArray(); return $this->toArray();
} }

View File

@ -137,7 +137,7 @@ final class Dom implements \Serializable, ArrayableInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return $this->toArray(); return $this->toArray();
} }

View File

@ -69,7 +69,7 @@ final class FormValidation implements \JsonSerializable, \Serializable, Arrayabl
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return $this->toArray(); return $this->toArray();
} }

View File

@ -173,7 +173,7 @@ final class Notify implements \JsonSerializable, \Serializable, ArrayableInterfa
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return $this->toArray(); return $this->toArray();
} }

View File

@ -115,7 +115,7 @@ final class Redirect implements \JsonSerializable, \Serializable, ArrayableInter
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return $this->toArray(); return $this->toArray();
} }

View File

@ -120,7 +120,7 @@ final class Reload implements \JsonSerializable, \Serializable, ArrayableInterfa
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return $this->toArray(); return $this->toArray();
} }

View File

@ -191,7 +191,7 @@ class Location implements \JsonSerializable, \Serializable
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return $this->toArray(); return $this->toArray();
} }

View File

@ -728,7 +728,7 @@ class Directory extends FileAbstract implements DirectoryInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function offsetExists($offset) public function offsetExists($offset) : bool
{ {
$offset = isset($this->nodes[$offset]) ? $offset : $this->path . '/' . $offset; $offset = isset($this->nodes[$offset]) ? $offset : $this->path . '/' . $offset;

View File

@ -551,7 +551,7 @@ final class Directory extends FileAbstract implements DirectoryInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function offsetExists($offset) public function offsetExists($offset) : bool
{ {
$offset = isset($this->nodes[$offset]) ? $offset : $this->path . '/' . $offset; $offset = isset($this->nodes[$offset]) ? $offset : $this->path . '/' . $offset;

View File

@ -21,7 +21,7 @@ class FileCacheJsonSerializable implements \JsonSerializable
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function jsonSerialize() public function jsonSerialize() : mixed
{ {
return 'abc'; return 'abc';
} }