mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 05:04:51 +08:00
fix compatibility for PHP 8.1
This commit is contained in:
parent
583b9d7cf7
commit
0cb3308dd1
@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace ZM\Event;
|
||||
|
||||
use Iterator;
|
||||
use ReturnTypeWillChange;
|
||||
use ZM\Console\Console;
|
||||
|
||||
class EventMapIterator implements Iterator
|
||||
@ -24,6 +25,7 @@ class EventMapIterator implements Iterator
|
||||
$this->event_name = $event_name;
|
||||
}
|
||||
|
||||
#[ReturnTypeWillChange]
|
||||
public function current()
|
||||
{
|
||||
Console::debug('从 [' . $this->offset . '] 开始获取');
|
||||
@ -36,6 +38,7 @@ class EventMapIterator implements Iterator
|
||||
$this->nextToValid();
|
||||
}
|
||||
|
||||
#[ReturnTypeWillChange]
|
||||
public function key()
|
||||
{
|
||||
Console::debug('返回key:' . $this->offset);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user