* zin: support to set boolean value by empty args.

This commit is contained in:
sunhao
2024-02-27 19:46:38 +08:00
parent a5b694a8c4
commit 203e2bf7ca
+2
View File
@@ -40,6 +40,8 @@ class set extends setting implements iDirective
public static function __callStatic($prop, $args): set
{
$set = new set();
if(empty($args)) return $set->set($prop, true);
if($prop === 'class' || strtolower($prop) === 'classname')
{
global $config;