mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 21:45:55 +00:00
wip
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Client\Support;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Scalar\String_;
|
||||
use PhpParser\NodeVisitorAbstract;
|
||||
|
||||
class TokenNodeVisitor extends NodeVisitorAbstract
|
||||
@@ -18,7 +19,7 @@ class TokenNodeVisitor extends NodeVisitorAbstract
|
||||
public function enterNode(Node $node)
|
||||
{
|
||||
if ($node instanceof Node\Expr\ArrayItem && $node->key && $node->key->value === 'auth_token') {
|
||||
$node->value->value = $this->token;
|
||||
$node->value = new String_($this->token);
|
||||
|
||||
return $node;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user