Skip to content

Commit 0b7eaab

Browse files
committed
docs: fix PHPDocs
1 parent 099b6f4 commit 0b7eaab

8 files changed

Lines changed: 9 additions & 7 deletions

File tree

‎system/CLI/CLI.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ public static function getSegments(): array
838838
* Gets a single command-line option. Returns TRUE if the option
839839
* exists, but doesn't have a value, and is simply acting as a flag.
840840
*
841-
* @return mixed
841+
* @return string|true|null
842842
*/
843843
public static function getOption(string $name)
844844
{

‎system/Common.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
*/
4545
function app_timezone(): string
4646
{
47+
/** @var App $config */
4748
$config = config(App::class);
4849

4950
return $config->appTimezone;

‎system/Config/Factories.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function models(string $name, array $options = [], ?ConnectionInte
8787
* Loads instances based on the method component name. Either
8888
* creates a new instance or returns an existing shared instance.
8989
*
90-
* @return mixed
90+
* @return object|null
9191
*/
9292
public static function __callStatic(string $component, array $arguments)
9393
{

‎system/Database/BaseBuilder.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1941,7 +1941,7 @@ protected function _insert(string $table, array $keys, array $unescapedKeys): st
19411941
}
19421942

19431943
/**
1944-
* Compiles an replace into string and runs the query
1944+
* Compiles a replace into string and runs the query
19451945
*
19461946
* @throws DatabaseException
19471947
*

‎system/Filters/Filters.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,8 @@ protected function processAliasesToClass(string $position)
509509
/**
510510
* Check paths for match for URI
511511
*
512-
* @param string $uri URI to test against
513-
* @param mixed $paths The path patterns to test
512+
* @param string $uri URI to test against
513+
* @param array|string $paths The path patterns to test
514514
*
515515
* @return bool True if any of the paths apply to the URI
516516
*/

‎system/HTTP/Files/UploadedFile.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public function getTempName(): string
283283
* type but will return the clientExtension if it fails to do so.
284284
*
285285
* This method will always return a more or less helpfull extension
286-
* but might be insecure if the mime type is not machted. Consider
286+
* but might be insecure if the mime type is not matched. Consider
287287
* using guessExtension for a more safe version.
288288
*/
289289
public function getExtension(): string

‎system/HTTP/RequestTrait.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public function setGlobal(string $method, $value)
212212
* @param int|null $filter Filter constant
213213
* @param array|int|null $flags Options
214214
*
215-
* @return mixed
215+
* @return array|bool|string|null
216216
*/
217217
public function fetchGlobal(string $method, $index = null, ?int $filter = null, $flags = null)
218218
{

‎system/HTTP/ResponseTrait.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ public function deleteCookie(string $name = '', string $domain = '', string $pat
657657
$store = $this->cookieStore;
658658
$found = false;
659659

660+
/** @var Cookie $cookie */
660661
foreach ($store as $cookie) {
661662
if ($cookie->getPrefixedName() === $prefixed) {
662663
if ($domain !== $cookie->getDomain()) {

0 commit comments

Comments
 (0)