accept null
This commit is contained in:
parent
06a5e76c50
commit
ecfc5d68c2
1 changed files with 1 additions and 1 deletions
|
@ -1454,7 +1454,7 @@ App::setResource('deviceForBuilds', function ($project) {
|
|||
return getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId());
|
||||
}, ['project']);
|
||||
|
||||
function getDevice(string $root, string $connection = null): Device
|
||||
function getDevice(string $root, ?string $connection = null): Device
|
||||
{
|
||||
$connection = empty($connection) ? System::getEnv('_APP_CONNECTIONS_STORAGE', '') : System::getEnv($connection, '');
|
||||
|
||||
|
|
Loading…
Reference in a new issue