* zin: rename empty to clear to compatible with php 5.6.

This commit is contained in:
sunhao
2024-02-28 10:54:52 +08:00
parent 820a0688af
commit c1bb1fe2bb
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -332,7 +332,7 @@ class node implements \JsonSerializable
$this->removed = true;
}
public function empty(?string $blockName = null)
public function clear(?string $blockName = null)
{
if($blockName) unset($this->blocks[$blockName]);
else $this->blocks = array();