Skip to content
Snippets Groups Projects
Verified Commit 314a4819 authored by Andrei Mondoc's avatar Andrei Mondoc Committed by Kevin Cristiano
Browse files

php7.0 compatible - remove array destructuring

parent bb5141b7
No related branches found
No related tags found
No related merge requests found
......@@ -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'] );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment