Skip to content

Commit 3207170

Browse files
committed
Renamed float methods.
1 parent 9df9f2e commit 3207170

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"hassankhan/config": "^3.1.0",
1616
"setbased/error-handler": "^1.2.0",
1717
"setbased/helper-cast": "^3.0.0",
18-
"setbased/php-stratum-backend": "^5.5.0",
18+
"setbased/php-stratum-backend": "^6.0.0",
1919
"symfony/console": "^6.2.5"
2020
},
2121
"minimum-stability": "dev",

src/Helper/StratumConfig.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ public function manBool(string $key, ?bool $default = null): bool
4444
/**
4545
* @inheritDoc
4646
*/
47-
public function manFiniteFloat(string $key, ?float $default = null): float
47+
public function manFloat(string $key, ?float $default = null): float
4848
{
49-
return Cast::toManFiniteFloat($this->config->get($key, $default));
49+
return Cast::toManFloat($this->config->get($key, $default));
5050
}
5151

5252
//--------------------------------------------------------------------------------------------------------------------
5353
/**
5454
* @inheritDoc
5555
*/
56-
public function manFloat(string $key, ?float $default = null): float
56+
public function manFloatInclusive(string $key, ?float $default = null): float
5757
{
58-
return Cast::toManFloat($this->config->get($key, $default));
58+
return Cast::toManFloatInclusive($this->config->get($key, $default));
5959
}
6060

6161
//--------------------------------------------------------------------------------------------------------------------
@@ -89,18 +89,18 @@ public function optBool(string $key, ?bool $default = null): ?bool
8989
/**
9090
* @inheritDoc
9191
*/
92-
public function optFiniteFloat(string $key, ?float $default = null): ?float
92+
public function optFloat(string $key, ?float $default = null): ?float
9393
{
94-
return Cast::toOptFiniteFloat($this->config->get($key, $default));
94+
return Cast::toOptFloat($this->config->get($key, $default));
9595
}
9696

9797
//--------------------------------------------------------------------------------------------------------------------
9898
/**
9999
* @inheritDoc
100100
*/
101-
public function optFloat(string $key, ?float $default = null): ?float
101+
public function optFloatInclusive(string $key, ?float $default = null): ?float
102102
{
103-
return Cast::toOptFloat($this->config->get($key, $default));
103+
return Cast::toOptFloatInclusive($this->config->get($key, $default));
104104
}
105105

106106
//--------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)