mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 05:09:11 +00:00
wip
This commit is contained in:
1 parent
49224a7c93
commit
523286d6c2
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user