Fix \ArrayAccess type warnings
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
This commit is contained in:
@@ -203,7 +203,7 @@ class Properties implements \ArrayAccess
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function offsetExists($offset)
|
||||
public function offsetExists(mixed $offset):bool
|
||||
{
|
||||
return isset($this->data[$offset]);
|
||||
}
|
||||
@@ -211,7 +211,7 @@ class Properties implements \ArrayAccess
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function offsetGet($offset)
|
||||
public function offsetGet(mixed $offset):mixed
|
||||
{
|
||||
if (isset($this->data[$offset])) {
|
||||
return $this->data[$offset];
|
||||
@@ -223,7 +223,7 @@ class Properties implements \ArrayAccess
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function offsetSet($offset, $value)
|
||||
public function offsetSet(mixed $offset, mixed $value):void
|
||||
{
|
||||
if ($offset == Opt::SAFE_STORE) {
|
||||
$this->safeStore = ($value === App::TRUE_VALUE);
|
||||
@@ -255,7 +255,7 @@ class Properties implements \ArrayAccess
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function offsetUnset($offset)
|
||||
public function offsetUnset(mixed $offset):void
|
||||
{
|
||||
if ($offset == Opt::SAFE_STORE) {
|
||||
$this->safeStore = App::FALSE_VALUE;
|
||||
|
||||
Reference in New Issue
Block a user