From 303381507450fdfe6384aca721e9a6d3b3ad667e Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Wed, 23 Mar 2022 23:33:36 +0000 Subject: [PATCH] Loosen the visibility of the node stack so a child class can access it. --- src/NodeVisitor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NodeVisitor.php b/src/NodeVisitor.php index 2b2ebfc..57b4ce0 100644 --- a/src/NodeVisitor.php +++ b/src/NodeVisitor.php @@ -52,7 +52,7 @@ class NodeVisitor extends NodeVisitorAbstract * @psalm-suppress PropertyNotSetInConstructor * @var Node[] */ - private $stack; + protected $stack; /** @var Namespace_[] */ private $namespaces = [];