summaryrefslogtreecommitdiffstats
path: root/core/modules/views_ui
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-11-13 11:20:57 (GMT)
committerNathaniel Catchpole2017-11-13 11:20:57 (GMT)
commit7206f5d9c939522756f78b94d5f662b50f53a667 (patch)
tree3ea47147f754ff77ca01d45f84b398fa0c11f068 /core/modules/views_ui
parent9830ef98bc08eaf40be9e9001bb7a5e5cfd1b735 (diff)
Issue #2885309 by vaplas, drewklein, pk188, alexpott, Ayesh, arunkumark, andypost, klausi, xjm, mondrake: [PHP 7.2] each() function is deprecated
Diffstat (limited to 'core/modules/views_ui')
-rw-r--r--core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php b/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
index 375766a..619b191 100644
--- a/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
+++ b/core/modules/views_ui/src/Form/Ajax/ViewsFormBase.php
@@ -104,7 +104,9 @@ abstract class ViewsFormBase extends FormBase implements ViewsFormInterface {
// Retrieve the first form from the stack without changing the integer keys,
// as they're being used for the "2 of 3" progress indicator.
reset($view->stack);
- list($key, $top) = each($view->stack);
+ $key = key($view->stack);
+ $top = current($view->stack);
+ next($view->stack);
unset($view->stack[$key]);
if (array_shift($top) != $identifier) {