From 091777dadd6a4105b976608a122e17a1089ffc46 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 20 Jun 2018 09:51:52 -0700 Subject: [PATCH] fix --- lib/Telegraph/FindLinks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Telegraph/FindLinks.php b/lib/Telegraph/FindLinks.php index 51241d6..a1d9e79 100644 --- a/lib/Telegraph/FindLinks.php +++ b/lib/Telegraph/FindLinks.php @@ -33,7 +33,7 @@ class FindLinks { * @param $input string text block * @return mixed array of links in text block. */ - public static function inText(string $input) { + public static function inText(\string $input) { preg_match_all('/https?:\/\/[^ ]+/', $input, $matches); return array_unique($matches[0]); } @@ -43,7 +43,7 @@ class FindLinks { * @param $input string text block * @return mixed array of links in text block. */ - public static function inHTML(string $html) { + public static function inHTML(\string $html) { $doc = new DOMDocument(); libxml_use_internal_errors(true); # suppress parse errors and warnings @$doc->loadHTML(self::toHtmlEntities($html), LIBXML_NOWARNING|LIBXML_NOERROR);