Skip to content

Commit 1e15f37

Browse files
committed
docs: add @return description
1 parent 8c39ef2 commit 1e15f37

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Helpers/url_helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ function base_url($relativePath = '', ?string $scheme = null): string
147147
if (! function_exists('current_url')) {
148148
/**
149149
* Returns the current full URL based on the Config\App settings and IncomingRequest.
150-
* String returns ignore query and fragment parts.
151150
*
152151
* @param bool $returnObject True to return an object instead of a string
153152
* @param IncomingRequest|null $request A request to use when retrieving the path
154153
*
155-
* @return string|URI
154+
* @return string|URI When returning string, the query and fragment parts are removed.
155+
* When returning URI, the query and fragment parts are preserved.
156156
*/
157157
function current_url(bool $returnObject = false, ?IncomingRequest $request = null)
158158
{

0 commit comments

Comments
 (0)