The Yaf_Config_Simple construct method parameters may be wrong documenting, actually first parameter shoud be array and second is string indicating if readonly.
PHP - Manual: Yaf_Config_Simple
2024-12-22
(Yaf >=1.0.0)
Yaf_Config_Simple 是 Yad_Config_ini 的简洁版本,只允许传入数组进行初始化,并提供了设置readonly的参数。
The Yaf_Config_Simple construct method parameters may be wrong documenting, actually first parameter shoud be array and second is string indicating if readonly.
官方地址:https://www.php.net/manual/en/class.yaf-config-simple.php