Open vesper8 opened 2 years ago
Warnings also apply to Meta::offsetSet
and Meta:offsetUnset
It appears that adding return types to these 3 methods makes the warnings go away:
/**
* Get the value at a given offset.
*
* @param string $offset
*
* @return mixed
*/
public function offsetGet($offset): mixed
{
return $this->values[$offset];
}
/**
* Set the value at a given offset.
*
* @param string $offset
* @param mixed $value
*
* @return void
*/
public function offsetSet($offset, $value): void
{
$this->values[$offset] = $value;
}
/**
* Remove the value at a given offset.
*
* @param string $offset
*
* @return void
*/
public function offsetUnset($offset): void
{
unset($this->values[$offset]);
}
Starting getting these warnings running PHP 8.1
Just a warning but would be nice if this was updated soon