优化MorphTo中方法默认值

This commit is contained in:
Karson
2025-06-17 11:17:19 +08:00
parent e617577f3b
commit bf57bdb9e1

View File

@@ -137,10 +137,11 @@ class MorphTo extends Relation
/** /**
* 移除关联查询参数 * 移除关联查询参数
* @param true $option
* @access public * @access public
* @return $this * @return $this
*/ */
public function removeOption() public function removeOption($option = true)
{ {
return $this; return $this;
} }