Skip to content

Commit a92a352

Browse files
committed
Renamed float methods.
1 parent 2e8a041 commit a92a352

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/Config.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ public function manBool(string $key, ?bool $default = null): bool;
2828
*
2929
* @return float
3030
*/
31-
public function manFiniteFloat(string $key, ?float $default = null): float;
31+
public function manFloat(string $key, ?float $default = null): float;
3232

3333
//--------------------------------------------------------------------------------------------------------------------
3434
/**
35-
* Returns the value of a float configuration setting.
35+
* Returns the value of a float including NaN, -INF, and INF configuration setting.
3636
*
3737
* @param string $key The key of the configuration setting. The key might be nested using dot notation.
3838
* @param float|null $default The default value.
3939
*
4040
* @return float
4141
*/
42-
public function manFloat(string $key, ?float $default = null): float;
42+
public function manFloatInclusive(string $key, ?float $default = null): float;
4343

4444
//--------------------------------------------------------------------------------------------------------------------
4545
/**
@@ -70,7 +70,7 @@ public function manString(string $key, ?string $default = null): string;
7070
* @param string $key The key of the configuration setting. The key might be nested using dot notation.
7171
* @param bool|null $default The default value.
7272
*
73-
* @return bool
73+
* @return bool|null
7474
*/
7575
public function optBool(string $key, ?bool $default = null): ?bool;
7676

@@ -81,20 +81,20 @@ public function optBool(string $key, ?bool $default = null): ?bool;
8181
* @param string $key The key of the configuration setting. The key might be nested using dot notation.
8282
* @param float|null $default The default value.
8383
*
84-
* @return float
84+
* @return float|null
8585
*/
86-
public function optFiniteFloat(string $key, ?float $default = null): ?float;
86+
public function optFloat(string $key, ?float $default = null): ?float;
8787

8888
//--------------------------------------------------------------------------------------------------------------------
8989
/**
90-
* Returns the value of an optional float configuration setting.
90+
* Returns the value of an optional float including NaN, -INF, and INF configuration setting.
9191
*
9292
* @param string $key The key of the configuration setting. The key might be nested using dot notation.
9393
* @param float|null $default The default value.
9494
*
95-
* @return float
95+
* @return float|null
9696
*/
97-
public function optFloat(string $key, ?float $default = null): ?float;
97+
public function optFloatInclusive(string $key, ?float $default = null): ?float;
9898

9999
//--------------------------------------------------------------------------------------------------------------------
100100
/**
@@ -103,7 +103,7 @@ public function optFloat(string $key, ?float $default = null): ?float;
103103
* @param string $key The key of the configuration setting. The key might be nested using dot notation.
104104
* @param int|null $default The default value.
105105
*
106-
* @return int
106+
* @return int|null
107107
*/
108108
public function optInt(string $key, ?int $default = null): ?int;
109109

@@ -114,7 +114,7 @@ public function optInt(string $key, ?int $default = null): ?int;
114114
* @param string $key The key of the configuration setting. The key might be nested using dot notation.
115115
* @param string|null $default The default value.
116116
*
117-
* @return string
117+
* @return string|null
118118
*/
119119
public function optString(string $key, ?string $default = null): ?string;
120120

0 commit comments

Comments
 (0)