Verified Commit 45240e4b authored by Andrei Mondoc's avatar Andrei Mondoc Committed by Kevin Cristiano

php7.0 compatible - remove array destructuring

Signed-off-by: Kevin Cristiano's avatarKevin Cristiano <kcristiano@kcristiano.com>
parent 78a00d9b
......@@ -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'] );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment