Skip to content

Commit d75e551

Browse files
committed
chore: Update web.php to cast server port as integer
1 parent 8e6c7ea commit d75e551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routes/web.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,12 @@
269269
} else {
270270
$server = $execution->scheduledDatabaseBackup->database->destination->server;
271271
}
272+
272273
$privateKeyLocation = $server->privateKey->getKeyLocation();
273274
$disk = Storage::build([
274275
'driver' => 'sftp',
275276
'host' => $server->ip,
276-
'port' => $server->port,
277+
'port' => (int) $server->port,
277278
'username' => $server->user,
278279
'privateKey' => $privateKeyLocation,
279280
'root' => '/',

0 commit comments

Comments
 (0)