From eb8a0b18b8094999388a07e7c9f837bdb143710a Mon Sep 17 00:00:00 2001 From: Liam Morland <lkmorlan@uwaterloo.ca> Date: Wed, 23 Mar 2022 16:16:05 -0400 Subject: [PATCH] Issue #3044734: Remove unused variable in TokenResolver --- src/TokenResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TokenResolver.php b/src/TokenResolver.php index 36a977f..f51b3f8 100644 --- a/src/TokenResolver.php +++ b/src/TokenResolver.php @@ -205,7 +205,7 @@ class TokenResolver implements TokenResolverInterface { // Loop through the tokens, starting with the last one. foreach (array_reverse($tokens) as $token) { // Explode token into its field_name and property parts. - [$field_name, $property] = array_pad(explode(':', $token), 2, ''); + [$field_name] = explode(':', $token, 2); if (!$entity->hasField($field_name)) { continue; -- GitLab