1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00

accept null

This commit is contained in:
fogelito 2024-05-23 17:49:41 +03:00
parent 06a5e76c50
commit ecfc5d68c2

View file

@ -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, '');