mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-12 11:26:55 +01:00
* [MOD] Deprecate PHP versions below 7.2 since they are no longer supported by PHP and Travis CI tests are not performed for them. https://www.php.net/supported-versions.php
* [MOD] Improve internal config handling. No more properties visibility tweaks. * [MOD] Updated dependencies. Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -293,7 +293,7 @@ final class Request
|
||||
*
|
||||
* @return array|null
|
||||
*/
|
||||
public function analyzeArray(string $param, callable $mapper = null, $default = null)
|
||||
public function analyzeArray(string $param, callable $mapper = null, $default = null): ?array
|
||||
{
|
||||
$requestValue = $this->params->get($param);
|
||||
|
||||
@@ -334,12 +334,12 @@ final class Request
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $param
|
||||
* @param int $default
|
||||
* @param string $param
|
||||
* @param int|null $default
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function analyzeInt(string $param, int $default = null)
|
||||
public function analyzeInt(string $param, int $default = null): ?int
|
||||
{
|
||||
if (!$this->params->exists($param)) {
|
||||
return $default;
|
||||
@@ -364,7 +364,7 @@ final class Request
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function analyzeBool(string $param, bool $default = null)
|
||||
public function analyzeBool(string $param, bool $default = null): bool
|
||||
{
|
||||
if (!$this->params->exists($param)) {
|
||||
return (bool)$default;
|
||||
|
||||
Reference in New Issue
Block a user