Skip to content

Commit

Permalink
Update LaravelConfig.php
Browse files Browse the repository at this point in the history
  • Loading branch information
YunusEmreNalbant committed Feb 29, 2024
1 parent a47bca9 commit 681020b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/LaravelConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ public function getValueAsBoolean(string $name, $default = null): ?bool
/**
* Retrieves the value of the specified configuration key as an integer.
*
* @param string $name The specified configuration key
* @param mixed $default The default value (optional)
* @return int|null The integer value of the specified configuration key or null
* @param string $name
* @param mixed $default
* @return int|null
*/
public function getValueAsInt(string $name, $default = null): ?int
{
Expand All @@ -214,11 +214,11 @@ public function getValueAsInt(string $name, $default = null): ?int
/**
* Retrieves the value of the specified configuration key and decodes it from JSON to an array or an object.
*
* @param string $name The specified configuration key
* @param mixed $default The default value (optional)
* @param bool $associative When true, returned objects will be converted into associative arrays.
* @param int $depth User specified recursion depth.
* @return array The decoded array value of the specified configuration key
* @param string $name
* @param mixed $default
* @param bool $associative
* @param int $depth
* @return array
*/
public function getValueAsDecodeJson(string $name, $default = [], ?bool $associative = true, int $depth = 512): array
{
Expand All @@ -244,9 +244,9 @@ public function getValueAsDecodeJson(string $name, $default = [], ?bool $associa
/**
* Retrieves the value of the specified configuration key and converts it to a Carbon Date instance.
*
* @param string $name The specified configuration key
* @param mixed $default The default value (optional)
* @return Carbon|null The Carbon Date instance of the specified configuration key, or null if conversion fails
* @param string $name
* @param mixed $default
* @return Carbon|null
*/
public function getValueAsDate(string $name, $default = null): ?Carbon
{
Expand Down

0 comments on commit 681020b

Please sign in to comment.