From d05a8b79fe9b13ffa6a74c22e4222f72a3e17c93 Mon Sep 17 00:00:00 2001
From: Joshua Coales <joshua@coales.co.uk>
Date: Sun, 8 Nov 2020 07:19:18 +0000
Subject: [PATCH] [contents.php] Fix return type hints (#1824)

---
 lib/contents.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/contents.php b/lib/contents.php
index 03764af9..6e6f0b7b 100644
--- a/lib/contents.php
+++ b/lib/contents.php
@@ -41,7 +41,7 @@
  * 'content' if enabled.
  *
  * For more information see http://php.net/manual/en/function.curl-setopt.php
- * @return string The contents.
+ * @return string|array The contents.
  */
 function getContents($url, $header = array(), $opts = array(), $returnHeader = false){
 	Debug::log('Reading contents from "' . $url . '"');
@@ -233,7 +233,7 @@ EOD
  * when returning plaintext.
  * @param string $defaultSpanText Specifies the replacement text for `<span />`
  * tags when returning plaintext.
- * @return string Contents as simplehtmldom object.
+ * @return false|simple_html_dom Contents as simplehtmldom object.
  */
 function getSimpleHTMLDOM($url,
 	$header = array(),
@@ -283,7 +283,7 @@ function getSimpleHTMLDOM($url,
  * when returning plaintext.
  * @param string $defaultSpanText Specifies the replacement text for `<span />`
  * tags when returning plaintext.
- * @return string Contents as simplehtmldom object.
+ * @return false|simple_html_dom Contents as simplehtmldom object.
  */
 function getSimpleHTMLDOMCached($url,
 	$duration = 86400,