diff --git a/www/lib/CoreLibs/Debug/Support.php b/www/lib/CoreLibs/Debug/Support.php index 15cdb7af..cc1333db 100644 --- a/www/lib/CoreLibs/Debug/Support.php +++ b/www/lib/CoreLibs/Debug/Support.php @@ -34,29 +34,29 @@ class Support } /** - * prints a html formatted (pre) array + * prints a html formatted (pre) data * - * @param array $array any array - * @param bool $no_html default add
-	 * @return string                formatted array for output with 
 tag added
+	 * @param  mixed  $data    any data
+	 * @param  bool   $no_html default add 
+	 * @return string          formatted array for output with 
 tag added
 	 */
-	public static function printAr(array $array, bool $no_html = false): string
+	public static function printAr(mixed $data, bool $no_html = false): string
 	{
 		return $no_html ?
-			print_r($array, true) :
-			'
' . print_r($array, true) . '
'; + print_r($data, true) : + '
' . print_r($data, true) . '
'; } /** * alternate name for printAr function * - * @param array $array any array - * @param bool $no_html default add
-	 * @return string                formatted array for output with 
 tag added
+	 * @param  mixed  $data    any array
+	 * @param  bool   $no_html default add 
+	 * @return string          formatted array for output with 
 tag added
 	 */
-	public static function printArray(array $array, bool $no_html = false): string
+	public static function printArray(mixed $data, bool $no_html = false): string
 	{
-		return self::printAr($array, $no_html);
+		return self::printAr($data, $no_html);
 	}
 
 	/**
@@ -65,12 +65,12 @@ class Support
 	 * Do not use this without using it in a string in debug function
 	 * Note: for full data debug dumps use Support::dumpVar()
 	 *
-	 * @param  array $a Array to format
-	 * @return string          print_r formated
+	 * @param  mixed  $data Data to print
+	 * @return string       print_r formated
 	 */
-	public static function prAr(array $a): string
+	public static function prAr(mixed $data): string
 	{
-		return self::printAr($a, true);
+		return self::printAr($data, true);
 	}
 
 	/**
diff --git a/www/lib/CoreLibs/Logging/Logging.php b/www/lib/CoreLibs/Logging/Logging.php
index 0f4ea970..06a4aafd 100644
--- a/www/lib/CoreLibs/Logging/Logging.php
+++ b/www/lib/CoreLibs/Logging/Logging.php
@@ -1082,12 +1082,12 @@ class Logging
 	 * But this does not wrap it in 

 	 * Do not use this without using it in a string in debug function
 	 *
-	 * @param  array $a Array to format
-	 * @return string          print_r formated
+	 * @param  mixed  $data Data to format
+	 * @return string       print_r formated
 	 */
-	public function prAr(array $a): string
+	public function prAr(mixed $data): string
 	{
-		return Support::printArray($a, true);
+		return Support::printArray($data, true);
 	}
 
 	/**