Skip to content

Commit 6a175f3

Browse files
ArzarothMarc-Etienne Barrut
andauthored
Allow empty port in psql schema dump (#47988)
Co-authored-by: Marc-Etienne Barrut <[email protected]>
1 parent 060faa6 commit 6a175f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Schema/PostgresSchemaState.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function baseVariables(array $config)
7070

7171
return [
7272
'LARAVEL_LOAD_HOST' => is_array($config['host']) ? $config['host'][0] : $config['host'],
73-
'LARAVEL_LOAD_PORT' => $config['port'],
73+
'LARAVEL_LOAD_PORT' => $config['port'] ?? '',
7474
'LARAVEL_LOAD_USER' => $config['username'],
7575
'PGPASSWORD' => $config['password'],
7676
'LARAVEL_LOAD_DATABASE' => $config['database'],

0 commit comments

Comments
 (0)