* [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:
Rubén D
2020-12-07 19:37:00 +01:00
parent ad90b707bf
commit 896d9fd3ad
20 changed files with 1640 additions and 953 deletions

View File

@@ -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;