diff --git a/src/Node/Variable/VariableWrite.php b/src/Node/Variable/VariableWrite.php index 2efcb502a1b..7cb13e68c42 100644 --- a/src/Node/Variable/VariableWrite.php +++ b/src/Node/Variable/VariableWrite.php @@ -9,6 +9,8 @@ * * Immutable. Whether the written value was read afterwards is not a property * of the write - it is answered by VariableWritesNode::isRead(). + * + * @api */ final class VariableWrite { diff --git a/src/Node/VariableWritesNode.php b/src/Node/VariableWritesNode.php index ea21dc84dfd..ddf52f4486a 100644 --- a/src/Node/VariableWritesNode.php +++ b/src/Node/VariableWritesNode.php @@ -18,6 +18,8 @@ * Emitted right after the body's ReturnStatementsNode, with the scope inside * the function-like. Arrow functions have no node of their own - their writes * belong to the enclosing function-like. + * + * @api */ final class VariableWritesNode extends NodeAbstract implements VirtualNode {