mirror of
https://github.com/friendica/friendica
synced 2025-04-27 12:30:11 +00:00
Fix PHP 8 inheritance deprecation warnings in App\PAge and ParsedLogIterator
This commit is contained in:
parent
6f93ee7e49
commit
99df11e99b
2 changed files with 17 additions and 53 deletions
|
@ -160,7 +160,7 @@ class ParsedLogIterator implements \Iterator
|
|||
* @see Iterator::next()
|
||||
* @return void
|
||||
*/
|
||||
public function next()
|
||||
public function next(): void
|
||||
{
|
||||
$parsed = $this->read();
|
||||
|
||||
|
@ -177,7 +177,7 @@ class ParsedLogIterator implements \Iterator
|
|||
* @see Iterator::rewind()
|
||||
* @return void
|
||||
*/
|
||||
public function rewind()
|
||||
public function rewind(): void
|
||||
{
|
||||
$this->value = null;
|
||||
$this->reader->rewind();
|
||||
|
@ -200,9 +200,9 @@ class ParsedLogIterator implements \Iterator
|
|||
* Return current iterator value
|
||||
*
|
||||
* @see Iterator::current()
|
||||
* @return ?ParsedLogLing
|
||||
* @return ?ParsedLogLine
|
||||
*/
|
||||
public function current()
|
||||
public function current(): ?ParsedLogLine
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue