This commit is contained in:
Marcel Pociot
2020-06-17 13:10:07 +02:00
parent 49224a7c93
commit 523286d6c2

View File

@@ -17,7 +17,7 @@ class TokenNodeVisitor extends NodeVisitorAbstract
public function enterNode(Node $node)
{
if ($node instanceof Node\Expr\ArrayItem && $node->key->value === 'auth_token') {
if ($node instanceof Node\Expr\ArrayItem && $node->key && $node->key->value === 'auth_token') {
$node->value->value = $this->token;
return $node;