Removed restrictions for printAr to only accept arrays

print_r call takes any value, changed that for all functions

array -> mixed
This commit is contained in:
Clemens Schwaighofer
2023-06-01 12:00:20 +09:00
parent 3039ebf913
commit b022662dfc
2 changed files with 20 additions and 20 deletions

View File

@@ -1082,12 +1082,12 @@ class Logging
* But this does not wrap it in <pre></pre>
* Do not use this without using it in a string in debug function
*
* @param array<mixed> $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);
}
/**