浏览代码

HtmlDom is not static anymore

Mark Scherer 10 年之前
父节点
当前提交
d2d40a7431
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      src/HtmlDom/HtmlDom.php

+ 5 - 5
src/HtmlDom/HtmlDom.php

@@ -13,19 +13,19 @@ use Yangqi\Htmldom\Htmldom as BaseHtmlDom;
 class HtmlDom extends BaseHtmlDom {
 
 	/**
-	 * @param url or path to file content
+	 * @param string $url URL or path to file content
 	 * @return object Dom
 	 */
-	public static function domFromFile($url) {
-		return static::file_get_html($url);
+	public function domFromFile($url) {
+		return parent::file_get_html($url);
 	}
 
 	/**
 	 * @param string $content
 	 * @return object Dom
 	 */
-	public static function domFromString($str, $lowercase = true) {
-		return static::str_get_html($str, $lowercase);
+	public function domFromString($str, $lowercase = true) {
+		return parent::str_get_html($str, $lowercase);
 	}
 
 }