Fix some PHP8.1 deprecation warnings
This commit is contained in:
parent
a2fdf05f79
commit
3aaa362747
1 changed files with 5 additions and 0 deletions
|
@ -1473,16 +1473,19 @@ class libvcalendar implements Iterator
|
||||||
|
|
||||||
/*** Implement PHP 5 Iterator interface to make foreach work ***/
|
/*** Implement PHP 5 Iterator interface to make foreach work ***/
|
||||||
|
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
function current()
|
function current()
|
||||||
{
|
{
|
||||||
return $this->objects[$this->iteratorkey];
|
return $this->objects[$this->iteratorkey];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
function key()
|
function key()
|
||||||
{
|
{
|
||||||
return $this->iteratorkey;
|
return $this->iteratorkey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
function next()
|
function next()
|
||||||
{
|
{
|
||||||
$this->iteratorkey++;
|
$this->iteratorkey++;
|
||||||
|
@ -1495,11 +1498,13 @@ class libvcalendar implements Iterator
|
||||||
return $this->valid();
|
return $this->valid();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
function rewind()
|
function rewind()
|
||||||
{
|
{
|
||||||
$this->iteratorkey = 0;
|
$this->iteratorkey = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
function valid()
|
function valid()
|
||||||
{
|
{
|
||||||
return !empty($this->objects[$this->iteratorkey]);
|
return !empty($this->objects[$this->iteratorkey]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue