Skip to content
Snippets Groups Projects
Commit eb8a0b18 authored by Liam Morland's avatar Liam Morland
Browse files

Issue #3044734: Remove unused variable in TokenResolver

parent f18a3760
No related branches found
No related tags found
No related merge requests found
...@@ -205,7 +205,7 @@ class TokenResolver implements TokenResolverInterface { ...@@ -205,7 +205,7 @@ class TokenResolver implements TokenResolverInterface {
// Loop through the tokens, starting with the last one. // Loop through the tokens, starting with the last one.
foreach (array_reverse($tokens) as $token) { foreach (array_reverse($tokens) as $token) {
// Explode token into its field_name and property parts. // 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)) { if (!$entity->hasField($field_name)) {
continue; continue;
......
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