From a0134404fa21152f0ebf37fd417448d24dcfb697 Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 27 Feb 2024 09:45:09 +0800 Subject: [PATCH] * zin: add empty command. --- lib/zin/core/command.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/zin/core/command.class.php b/lib/zin/core/command.class.php index d1d67d28dc..5698d74d16 100644 --- a/lib/zin/core/command.class.php +++ b/lib/zin/core/command.class.php @@ -61,6 +61,11 @@ class command $node->add(text(...$args)); } + public static function empty(node $node, array $args) + { + $node->empty(); + } + public static function prepend(node $node, array $args) { $node->add($args, 'children', true);