From 076b3bd3493400c8e9c7fd06e8b0ee1217e98e59 Mon Sep 17 00:00:00 2001
From: Andrei Mondoc <andreimondoc@gmail.com>
Date: Tue, 25 Jun 2019 23:46:36 +0100
Subject: [PATCH] php7.0 compatible - remove array destructuring

Signed-off-by: Kevin Cristiano <kcristiano@kcristiano.com>
---
 wp-rest/Controller/Rest.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wp-rest/Controller/Rest.php b/wp-rest/Controller/Rest.php
index 7f275d0e48..0aeb3dff57 100644
--- a/wp-rest/Controller/Rest.php
+++ b/wp-rest/Controller/Rest.php
@@ -152,8 +152,8 @@ class Rest extends Base {
 
 		$args = $request->get_params();
 
-		// destructure entity and action
-		[ 'entity' => $entity, 'action' => $action ] = $args;
+		$entity = $args['entity'];
+		$action = $args['action'];
 
 		// unset unnecessary args
 		unset( $args['entity'], $args['action'], $args['key'], $args['api_key'] );
-- 
GitLab