mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
PHP/Core
* enforced v7.1 compliance, preparations for v7.2 * removed deprecated usage of each() * prefer array deconstruction via [] instead of calling list() * try to catch failed session_start() * prefer ... - Token instead of calling func_get_args() func_num_args() * enforce return types in AjaxHandler * revision push
This commit is contained in:
@@ -69,8 +69,8 @@ class SmartAI
|
||||
if ($ts = $this->getTalkSource())
|
||||
$this->getQuotes($ts);
|
||||
|
||||
list($evtBody, $evtFooter) = $this->event();
|
||||
list($actBody, $actFooter) = $this->action();
|
||||
[$evtBody, $evtFooter] = $this->event();
|
||||
[$actBody, $actFooter] = $this->action();
|
||||
|
||||
if ($ef = $this->eventFlags())
|
||||
{
|
||||
@@ -174,9 +174,11 @@ class SmartAI
|
||||
|
||||
private function &iterate() : iterable
|
||||
{
|
||||
while (list($id, $_) = each($this->rawData))
|
||||
reset($this->rawData);
|
||||
|
||||
foreach ($this->rawData as $k => $__)
|
||||
{
|
||||
$this->itr = &$this->rawData[$id];
|
||||
$this->itr = &$this->rawData[$k];
|
||||
|
||||
yield $this->itr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user