Fix various phpstan issues.

This commit is contained in:
James Cole
2023-11-04 11:31:14 +01:00
parent ef428a0226
commit 0220cf9784
64 changed files with 195 additions and 153 deletions

View File

@@ -37,11 +37,11 @@ bcscale(12);
if (!function_exists('envNonEmpty')) {
/**
* @param string $key
* @param null $default
* @param string|int|bool|null $default
*
* @return mixed|null
*/
function envNonEmpty(string $key, $default = null)
function envNonEmpty(string $key, string|int|bool|null $default = null)
{
$result = env($key, $default);
if ('' === $result) {