Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

php 7.2 The each() function is deprecated #306

Closed
LaxCorp opened this issue Jan 23, 2018 · 0 comments · Fixed by #307
Closed

php 7.2 The each() function is deprecated #306

LaxCorp opened this issue Jan 23, 2018 · 0 comments · Fixed by #307

Comments

@LaxCorp
Copy link

LaxCorp commented Jan 23, 2018

The each() function is deprecated in php 7.2.

Please fix: sonata-project/notification-bundle/src/Backend/PostponeRuntimeBackend.php
line 82
while (list($key, $message) = each($this->messages)) {
$this->handle($message, $this->dispatcher);
}

on

foreach($this->messages as $key => $message){
$this->handle($message, $this->dispatcher);
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants