accept null
This commit is contained in:
parent
06a5e76c50
commit
ecfc5d68c2
|
@ -1454,7 +1454,7 @@ App::setResource('deviceForBuilds', function ($project) {
|
||||||
return getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId());
|
return getDevice(APP_STORAGE_BUILDS . '/app-' . $project->getId());
|
||||||
}, ['project']);
|
}, ['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, '');
|
$connection = empty($connection) ? System::getEnv('_APP_CONNECTIONS_STORAGE', '') : System::getEnv($connection, '');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue