Skip to content

Commit 9269195

Browse files
committed
docs: fix @param types
1 parent 1b65128 commit 9269195

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

system/Email/Email.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ class Email
392392
protected static $func_overload;
393393

394394
/**
395-
* @param array|null $config
395+
* @param array|\Config\Email|null $config
396396
*/
397397
public function __construct($config = null)
398398
{
@@ -405,7 +405,7 @@ public function __construct($config = null)
405405
/**
406406
* Initialize preferences
407407
*
408-
* @param array|\Config\Email $config
408+
* @param array|\Config\Email|null $config
409409
*
410410
* @return Email
411411
*/

system/HTTP/URI.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ class URI
138138
/**
139139
* Builds a representation of the string from the component parts.
140140
*
141-
* @param string $scheme
142-
* @param string $authority
143-
* @param string $path
144-
* @param string $query
145-
* @param string $fragment
141+
* @param string|null $scheme URI scheme. E.g., http, ftp
142+
* @param string $authority
143+
* @param string $path
144+
* @param string $query
145+
* @param string $fragment
146146
*/
147147
public static function createURIString(?string $scheme = null, ?string $authority = null, ?string $path = null, ?string $query = null, ?string $fragment = null): string
148148
{

system/Helpers/url_helper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ function _get_uri(string $relativePath = '', ?App $config = null): URI
7575
* Returns a site URL as defined by the App config.
7676
*
7777
* @param array|string $relativePath URI string or array of URI segments
78+
* @param string|null $scheme URI scheme. E.g., http, ftp
7879
* @param App|null $config Alternate configuration to use
7980
*/
8081
function site_url($relativePath = '', ?string $scheme = null, ?App $config = null): string
@@ -96,6 +97,7 @@ function site_url($relativePath = '', ?string $scheme = null, ?App $config = nul
9697
* Base URLs are trimmed site URLs without the index page.
9798
*
9899
* @param array|string $relativePath URI string or array of URI segments
100+
* @param string|null $scheme URI scheme. E.g., http, ftp
99101
*/
100102
function base_url($relativePath = '', ?string $scheme = null): string
101103
{

0 commit comments

Comments
 (0)