Skip to content

Commit 6f2969d

Browse files
committed
docs: fix types in reference
1 parent 36e4050 commit 6f2969d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

user_guide_src/source/general/common_functions.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ Service Accessors
117117
.. php:function:: old($key[, $default = null,[, $escape = 'html']])
118118
119119
:param string $key: The name of the old form data to check for.
120-
:param mixed $default: The default value to return if $key doesn't exist.
121-
:param mixed $escape: An `escape <#esc>`_ context or false to disable it.
120+
:param string|null $default: The default value to return if $key doesn't exist.
121+
:param false|string $escape: An `escape <#esc>`_ context or false to disable it.
122122
:returns: The value of the defined key, or the default value.
123-
:rtype: mixed
123+
:rtype: array|string|null
124124

125125
Provides a simple way to access "old input data" from submitting a form.
126126

0 commit comments

Comments
 (0)