Skip to content

Commit 6604987

Browse files
ondrejmirtesclaude
andcommitted
Mark VariableWritesNode and VariableWrite as @api
phpstan-strict-rules listens on VariableWritesNode, like the other virtual nodes it consumes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LYiPGg9cpsKLyK6X5BrJTT
1 parent 6370618 commit 6604987

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/Node/Variable/VariableWrite.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*
1010
* Immutable. Whether the written value was read afterwards is not a property
1111
* of the write - it is answered by VariableWritesNode::isRead().
12+
*
13+
* @api
1214
*/
1315
final class VariableWrite
1416
{

‎src/Node/VariableWritesNode.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
* Emitted right after the body's ReturnStatementsNode, with the scope inside
1919
* the function-like. Arrow functions have no node of their own - their writes
2020
* belong to the enclosing function-like.
21+
*
22+
* @api
2123
*/
2224
final class VariableWritesNode extends NodeAbstract implements VirtualNode
2325
{

0 commit comments

Comments
 (0)