mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
fixed php 8.1 type bugs
This commit is contained in:
parent
97ad384589
commit
b1faa50caa
|
|
@ -424,7 +424,7 @@ class Account implements \JsonSerializable, ArrayableInterface
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ class Group implements \JsonSerializable, ArrayableInterface
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -520,7 +520,7 @@ class PermissionAbstract implements \JsonSerializable
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
|
|
|
|||
|
|
@ -790,7 +790,7 @@ class Localization implements \JsonSerializable
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ abstract class ResponseAbstract implements \JsonSerializable, MessageInterface
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ final class Dom implements \Serializable, ArrayableInterface
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ final class FormValidation implements \JsonSerializable, \Serializable, Arrayabl
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ final class Notify implements \JsonSerializable, \Serializable, ArrayableInterfa
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ final class Redirect implements \JsonSerializable, \Serializable, ArrayableInter
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ final class Reload implements \JsonSerializable, \Serializable, ArrayableInterfa
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ class Location implements \JsonSerializable, \Serializable
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return $this->toArray();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -728,7 +728,7 @@ class Directory extends FileAbstract implements DirectoryInterface
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
public function offsetExists($offset) : bool
|
||||
{
|
||||
$offset = isset($this->nodes[$offset]) ? $offset : $this->path . '/' . $offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -551,7 +551,7 @@ final class Directory extends FileAbstract implements DirectoryInterface
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
public function offsetExists($offset) : bool
|
||||
{
|
||||
$offset = isset($this->nodes[$offset]) ? $offset : $this->path . '/' . $offset;
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class FileCacheJsonSerializable implements \JsonSerializable
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function jsonSerialize()
|
||||
public function jsonSerialize() : mixed
|
||||
{
|
||||
return 'abc';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user