Skip to content

Commit

Permalink
修复几个小问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xudianyang committed Sep 5, 2014
1 parent ae400b2 commit c6c5f95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Yaf.namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -1045,12 +1045,12 @@ interface View_Interface
*
* 当只有一个参数时,参数必须是Array类型,可以展开多个模板变量
*
* @param string $name 变量名
* @param string | array $name 变量
* @param string $value 变量值
*
* @return Boolean
*/
public function assign($name, $value);
public function assign($name, $value = null);

/**
* (Yaf >= 2.2.9)
Expand Down Expand Up @@ -2434,7 +2434,7 @@ final class Ini extends Config_Abstract
* @param string $filename ini文件全路径
* @param string $section 初始化时的配置节点名称
*/
public function __construct($filename, $section){}
public function __construct($filename, $section = null){}

/**
* (Yaf >= 2.2.9)
Expand Down Expand Up @@ -3107,7 +3107,7 @@ public function clear($name){}
*
* @return Boolean
*/
public function assign($name, $value){}
public function assign($name, $value = null){}

/**
* (Yaf >= 2.2.9)
Expand Down
6 changes: 3 additions & 3 deletions Yaf.underline.php
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ interface Yaf_View_Interface
*
* @return Boolean
*/
public function assign($name, $value);
public function assign($name, $value = null);

/**
* (Yaf >= 2.2.9)
Expand Down Expand Up @@ -2424,7 +2424,7 @@ final class Yaf_Config_Ini extends Yaf_Config_Abstract
* @param string $filename ini文件全路径
* @param string $section 初始化时的配置节点名称
*/
public function __construct($filename, $section){}
public function __construct($filename, $section = null){}

/**
* (Yaf >= 2.2.9)
Expand Down Expand Up @@ -3087,7 +3087,7 @@ public function clear($name){}
*
* @return Boolean
*/
public function assign($name, $value){}
public function assign($name, $value = null){}

/**
* (Yaf >= 2.2.9)
Expand Down

0 comments on commit c6c5f95

Please sign in to comment.