From 3c699fad2dd94ee926ba04bdaf79e6f14b5b728b Mon Sep 17 00:00:00 2001 From: Alexander Pas Date: Tue, 21 Sep 2021 13:11:43 +0200 Subject: [PATCH] Fix `mixed` return type declarations and parameters of Misc. Functions (#942) --- reference/misc/functions/get-browser.xml | 9 +++++++-- reference/misc/functions/highlight-file.xml | 2 +- reference/misc/functions/highlight-string.xml | 6 +++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/reference/misc/functions/get-browser.xml b/reference/misc/functions/get-browser.xml index 3991f25045..5f481886cb 100644 --- a/reference/misc/functions/get-browser.xml +++ b/reference/misc/functions/get-browser.xml @@ -9,8 +9,8 @@ &reftitle.description; - mixedget_browser - stringuser_agent + objectarrayfalseget_browser + stringnulluser_agent&null; boolreturn_array&false; @@ -65,6 +65,11 @@ cookies are accepted is to set one with setcookie, reload, and check for the value. + + Returns &false; when no information can be retrieved, such as when the + browscap configuration setting in + &php.ini; has not been set. + diff --git a/reference/misc/functions/highlight-file.xml b/reference/misc/functions/highlight-file.xml index 8f843c9b85..0cc1bbbaf4 100644 --- a/reference/misc/functions/highlight-file.xml +++ b/reference/misc/functions/highlight-file.xml @@ -9,7 +9,7 @@ &reftitle.description; - mixedhighlight_file + stringboolhighlight_file stringfilename boolreturn&false; diff --git a/reference/misc/functions/highlight-string.xml b/reference/misc/functions/highlight-string.xml index 62ba359c4b..3c1e4fe107 100644 --- a/reference/misc/functions/highlight-string.xml +++ b/reference/misc/functions/highlight-string.xml @@ -9,8 +9,8 @@ &reftitle.description; - mixedhighlight_string - stringstr + stringboolhighlight_string + stringstring boolreturn&false; @@ -24,7 +24,7 @@ - str + string The PHP code to be highlighted. This should include the opening tag.